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
- Got message for auto payment of 15usd fo...
how did this happen? 1. i claimed my 50usd credits via jsm hackathon - https://hackathon.jsmastery.pro/ 2. it asked me which org. to apply the credits on, i se...
- Invalid document structure: missing requ...
I just pick up my code that's working a week ago, and now I got this error: ``` code: 400, type: 'document_invalid_structure', response: { message: 'Inv...
- Apple OAuth Scopes
Hi Hi, I've configured sign in with apple and this is the response i'm getting from apple once i've signed in. I cant find anywhere I set scopes. I remember se...