#after problems with processing an attribute creating index fails
77 messages · Page 1 of 1 (latest)
What do you mean unreadable?
ah this is a bug with the Console. Would you please create a GitHub issue so we don't lose track of this?
#8827 created
Thanks!
Moved to console: https://github.com/appwrite/console/issues/1429
you wom‘t forget my index problem ?
This needs to be fixed with a release.
For now, you can try inspecting the network traffic to see the response from API call
Or close the modal
Without an index, I can not query my collection, correct?
Incorrect. You can still query you collection 🙂
However, you will not be able to Query.contains Query.search on a string (cause you need a fulltext index)
i use query.equal...
Also in case you haven't read it, I think it says "Attribute not available: org_id"
That just works without indexes 🙂
yes, but I can C R U D my collection, despite the processing message.
If your attribute is processing, that means that the attribute is not ready. Hence the error before then.
no, attribute org_id is available for creating a key
Hm , OK
What attribute is processing?
Search is the query that requires full text. You should be fine with contains
Ah, my mistake
If you switch back to the attributes tab and refresh, what's it show?
org_id processing
Did you do something? Because it was available earlier 🧐
no. nothing.
now all is OK. And index created😄🙏
But, when I write a document with SDK databases.createDocument(...)
the following error occurs and my program crashes: (see image)
I can not see what the reason is 🥺
What's the full error?
I only can see this message in chrome dev tools. Then the program is logging out … weird
You can't see the response payload?
Or the console log?
Unfortunately, i can not see any response payload. Console.log disappears, because the program is logging out .
Code:
const promise = databases.createDocument(datebaseID, DBCollectionArray.get('vbx_schedules'), ${this.uuid}, {
day_of_week: day,
time_range: [startTime1, endTime1],
time_range_2: [startTime2, endTime2],
org_id: pOrg_id
});
Note: Creating documents manually works without any problems. Reading documents via the SDK also works.
Hi Steven, did you see my error message before? pls help, I am stuck in this problem.
I can't tell from this. You'll need to debug more to see what the error is
Hm, but what does the error message (see image) mean? This is no problem of my code. Every old collection i create a document works, with new tables i create in cloud console it not works.
This? The response was removed from the dev tools.
now i got the console.log error. All attributes in collection are string fields:
Error saving schedule: TypeError: Failed to fetch
at Client.eval (webpack-internal:///./node_modules/appwrite/dist/esm/sdk.js:643:36)
at Generator.next (<anonymous>)
at eval (webpack-internal:///./node_modules/appwrite/dist/esm/sdk.js:47:71)
at new Promise (<anonymous>)
at __awaiter (webpack-internal:///./node_modules/appwrite/dist/esm/sdk.js:43:12)
at Client.call (webpack-internal:///./node_modules/appwrite/dist/esm/sdk.js:640:16)
at Databases.eval (webpack-internal:///./node_modules/appwrite/dist/esm/sdk.js:2400:38)
at Generator.next (<anonymous>)
at eval (webpack-internal:///./node_modules/appwrite/dist/esm/sdk.js:47:71)
at new Promise (<anonymous>)
I have to repeat this. I tested intensively. In every old collection (migration from my self hosted instance) I create a document with SDK, it works fine. With every new collection I create in the cloud console, it does not work! Can you pls verify this on your site? THX
You're saying you can't create a document in the Appwrite Console for new collections? What's your project id?
No, in the appwrite cloud console it works. With SDK web it doesn‘t work.
project id: 645113a5025c36c13f0c
collection: 6717a8ca0006501a0c1c
ok...what are the permissions on your collection?
i gave any for all operations.
are there relationships?
It doesn't look like this collection has all these attributes 🧐
no
what exactly do you mean ?
This collection only has 2 attributes
what are you doing that's faililng? And can I try to test against your project to reproduce?
Yes, for testing purpose only 2 attributes. Yes, pls feel free to test aginst. I can show you my simple code. This code is working with all other "older" collections.
yes share your code and what version of the web sdk you're using
i was able to create a document using CURL
and since you can create a document using the Console too, that means something is wrong with your code
Hm, OK, I use "appwrite": "^16.0.2", WEB SDK in my vue.js app.
Here is my code:
this.uuid = uuid.v4(); // uuid function
const promise = databases.createDocument(datebaseID, DBCollectionArray.get('vbx_scheduler_test'), `${this.uuid}`, { //6717a8ca0006501a0c1c
id: `${this.uuid}`,
day: "test"
});
promise.then((response) => {
console.log(response); // Success
}, (error) => {
console.log(error); // Failure
});
},```
And the error you see in my former posts.
FYI, it's best to wrap code in backticks to format a bit nicer. You can use 1 backtick for inline code (https://www.markdownguide.org/basic-syntax/#code) and 3 backticks for multiline code (https://www.markdownguide.org/extended-syntax/#syntax-highlighting).
OK, THX for the info.
please inspect the network logs for this request and share the details about the request
TypeError: Failed to fetch
at Client.eval (webpack-internal:///./node_modules/appwrite/dist/esm/sdk.js:643:36)
at Generator.next (<anonymous>)
at eval (webpack-internal:///./node_modules/appwrite/dist/esm/sdk.js:47:71)
at new Promise (<anonymous>)
at __awaiter (webpack-internal:///./node_modules/appwrite/dist/esm/sdk.js:43:12)
at Client.call (webpack-internal:///./node_modules/appwrite/dist/esm/sdk.js:640:16)
at Databases.eval (webpack-internal:///./node_modules/appwrite/dist/esm/sdk.js:2400:38)
at Generator.next (<anonymous>)
at eval (webpack-internal:///./node_modules/appwrite/dist/esm/sdk.js:47:71)
at new Promise (<anonymous>)
and the payload:
"documentId": "3c0bc668-d724-4a03-8a00-0af2319bf48b",
"data": {
"id": "3c0bc668-d724-4a03-8a00-0af2319bf48b",
"day": "test"
}
}```
and the details on the headers tab?
anything in response headers?
no nothing. Only Message: Failed to load response data. No resource with given identifier found.
any other similar request in the network logs?
no, only like shown above in the image
can you try in a different browser?
or a private window without any extensions
i will try …
I also tested from my local web app and it ran fine:
hm ,that's weird. All other inserts in my collections with the same SDK and code work without problems. Edge, the same problem, Safari the same too.
inserting in all other tables works without trouble, see example:
you have another code sample for me?
from my node.js backend app it works fine🤨