Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Bug Report: Using only search parameter in listCollections results in Error #18

Closed
2 tasks done
Caryntjen opened this issue Jan 16, 2022 · 0 comments · Fixed by appwrite/appwrite#2638
Closed
2 tasks done
Assignees
Labels
bug Something isn't working

Comments

@Caryntjen
Copy link

👟 Reproduction steps

Using only search parameter in listCollections results in Error

Try running:
val collectionList = appwriteDatabase.listCollections(search = "COLLECTIONID")

👍 Expected behavior

If collection exists I would like to receive a proper io.appwrite.models.CollectionList Object

If collection does not exists I would like to receive a proper io.appwrite.models.CollectionList Object, but sum would be 0 and collections would be empty map?

👎 Actual Behavior

Currently results in an error which is not clear (the collection id exists):

Exception in thread "main" io.appwrite.exceptions.AppwriteException: {"message":"Error: Server Error","code":500,"version":"0.12.1"}
	at io.appwrite.Client$awaitResponse$2$1.onResponse(Client.kt:327)
	at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:519)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:829)

Looking in appwrite logs:

[Error] File: /usr/src/code/vendor/utopia-php/framework/src/App.php
[Error] Line: 756
[Error] Type: PDOException
[Error] Message: Can't find FULLTEXT index matching the column list
[Error] File: @swoole-src/library/core/Database/PDOStatementProxy.php
[Error] Line: 64

🎲 Appwrite version

Different version (specify in environment)

💻 Operating system

Windows

🧱 Your Environment

Appwrite v0.12.1 - sdk-for-kotlin v0.2.2
Java v11
Kotlin v1.6.10

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants