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

setData() fails with Path not supported by Algolia REST API #52

Closed
louisdeveseleer opened this issue May 7, 2021 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@louisdeveseleer
Copy link

Dart version: 2.12.3
Flutter version: 2.0.6 (stable)

setData() fails and gives the error message : "Path not supported by Algolia REST API. Please have a look at http://www.algolia.com/doc/rest_api for the list of valid commands, status: 404"

Future<void> updateName(String id, String name) async { var index = algoliaUserNames.instance.index('UserNames'); try { await index.object(id).setData({'name': name}); } catch (e) { print(e.error); } }
If replacing setData() by updateData() on an existing object, it works fine.
setData fails whether the object exists or not.
I tried with a custom API key where the "addObject" ACL had been added, and I also tried with the Admin API key, without success.

Steps to reproduce the behavior:
Try using setData().

@louisdeveseleer louisdeveseleer added the bug Something isn't working label May 7, 2021
@nhathiwala
Copy link
Member

Resolved in version ^1.0.4

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

No branches or pull requests

2 participants