sdk.js:124
POST https://cloud.appwrite.io/v1/databases/||64667b35b7bd81b5d513||/collections/||64667be5ae8987f11e76||/documents 500 (Internal Server Error)
(anonymous) @ browser-ponyfill.js:518 fetch @ browser-ponyfill.js:455 (anonymous) @ client.ts:408 (anonymous) @ tslib.es6.js:76 __awaiter @ tslib.es6.js:72 call @ client.ts:361 (anonymous) @ databases.ts:96 (anonymous) @ tslib.es6.js:76 __awaiter @ tslib.es6.js:72 createDocument @ databases.ts:63 (anonymous) @ sdk.js:124 asyncGeneratorStep @ asyncToGenerator.js:3 _next @ asyncToGenerator.js:22 (anonymous) @ asyncToGenerator.js:27 (anonymous) @ asyncToGenerator.js:19 createDocument @ sdk.js:118 onSaveIngridient @ IngridientModal.js:58 onClick @ PressResponder.js:348 callCallback @ react-dom.development.js:4164 invokeGuardedCallbackDev @ react-dom.development.js:4213 invokeGuardedCallback @ react-dom.development.js:4277 invokeGuardedCallbackAndCatchFirstError @ react-dom.development.js:4291 executeDispatch @ react-dom.development.js:9041 processDispatchQueueItemsInOrder @ react-dom.development.js:9073 processDispatchQueue @ react-dom.development.js:9086 dispatchEventsForPlugins @ react-dom.development.js:9097 (anonymous) @ react-dom.development.js:9288 batchedUpdates$1 @ react-dom.development.js:26140 batchedUpdates @ react-dom.development.js:3991 dispatchEventForPluginEventSystem @ react-dom.development.js:9287 dispatchEventWithEnableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay @ react-dom.development.js:6465 dispatchEvent @ react-dom.development.js:6457 dispatchDiscreteEvent @ react-dom.development.js:6430 Show 30 more frames Show less sdk.js:136 AppwriteException: Server Error at Client.<anonymous> (http://localhost:19006/static/js/bundle.js:173596:27) at Generator.next (<anonymous>) at fulfilled (http://localhost:19006/static/js/bundle.js:173227:58)
Can you share the piece of code which throws this error?
export const createDocument = async ( collectionId, data, setCollection, abortableRequest ) => { const promise = databases.createDocument( DATABASE_ID, collectionId, ID.unique(), data ) ....
const onSaveIngridient = () => { createDocument( '64667be5ae8987f11e76', { DefaultMeasure: 'гр', Name: 'Test' }, () => { navigation.navigate('IngridientsNavigator') }, abortableRequest ) setData({}) }
createDocument is common method that is used for other collections in which there is no error
I can read this collection, but I cannot create or update it. Create and delete permissions are set
Recommended threads
- My account is blocked so please check an...
My account is blocked so please unblock my account because all the apps are closed due to which it is causing a lot of problems
- Applying free credits on Github Student ...
So this post is kind of related to my old post where i was charged 15usd by mistake. This happens when you are trying to apply free credits you got from somewh...
- delete document problems
i don't know what's going on but i get an attribute "tournamentid" not found in the collection when i try to delet the document... but this is just the document...