have a problem: when i use : Query.equal("slug", slug) ,it will get nothing, is a 400 Bad Request, if i delete,i will get all of the docs.
it also hint in the console:Third-party cookie will be blocked. Learn more in the Issues tab.
thank you very much!
TypeScript
const BlogPost = ({ params }) => {
const { slug } = params;
const [blog, setBlog] = useState([]);
const client = new Client();
client
.setEndpoint("https://cloud.appwrite.io/v1")
.setProject("6612132f20001a5e3a77");
const databases = new Databases(client);
console.log('config', client.config)
useEffect(() => {
const promise = databases.listDocuments(
"6612177ab3ab261d4994",
"661218961263102d06cf",
[
Query.equal("title", ["python"])
]
);
promise.then(
function (response) {
console.log("slug is", slug);
setBlog(response.documents[0]);
},
function (error) {
console.log(error);
}
);
}, [slug]);
TL;DR
Issue: 400 Bad Request error when using Query.equal("slug", slug) in BlogPost component.
Console hint: Third-party cookies may be blocked.
Solution: The issue could be related to the Query.equal method formatting. Try adjusting the query or the data structure to resolve the error. Also, consider the third-party cookie blocking issue.Recommended threads
- TablesDB `updateRows` returns `database_...
Hi Appwrite team! I’m seeing a strange issue with TablesDB bulk row updates on a self-hosted Appwrite instance. **Environment** - Appwrite self-hosted `1.9.0` ...
- [SOLVED] Realtime Missing Channels
```js useEffect(() => { let subscription: RealtimeSubscription; async function loadChips() { try { const {rows: chi...
- Updating GitHub App access throws error
Steps to reproduce - 1. Have some private repos allowed on the install access 2. New Site/Func > Connect GitHub > see the side card saying `Missing a repo` > cl...