err: document_invalid_structure - Invalid document structure: Missing required attribute "longitude"
- 0
- Databases
- Web
- Cloud
Running into a bit of a weird error with Appwrite Cloud v.1.4.7:
I'm trying to create documents with the node sdk via a next.js api route, but I'm recieving this error;
{
code: 400,
type: 'document_invalid_structure',
response: {
message: 'Invalid document structure: Missing required attribute "longitude"',
code: 400,
type: 'document_invalid_structure',
version: '0.11.17'
}
Which would make sense if longitude was actually missing, but what's actually happening is that it's throwing the error and then proceeding to create the document afterwards - including the longitude value...
the document type has 16 attributes so I'm thinking it's possibly returning a response after the request is queued but not completed because it's taking longer than expected or something, any help would be great thank you!
what's your code?
and are you using relationships?
Recommended threads
- Cloud function deploy stucks in processi...
Been trying for the last hours to deploy my function but for whatever reason, alwasy stuck on processing!
- Increase by operators
I see appwrite have bunch of useful operators for querieng db. One more I would like to suggest is operators like increase the count of a int columns by 1,2.. ...
- One-time Cloud migration blocked by data...
Hi, I’m blocked on a one-time migration from Appwrite Cloud to my self-hosted Appwrite instance. We already fixed the region issue, and the migration now corre...