I get this error anytime I push to storage bucket. I have succesfully push a file to that Bucket ID few days ago.
I modified the code and added ID.Companion.unique() and now I get the error bellow when I try to push to storage.
io.appwrite.exceptions.AppwriteException: Not found at io.appwrite.Client$awaitResponse$2$1.onResponse(Client.kt:497) at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:519)
Here is the function code snippet
public void cloudStorage() {
Client client = new Client(requireActivity());
client.setEndpoint(endpoint);
client.setProject(project);
client.setSelfSigned(true);
File file = new File(String.valueOf(Objects.requireNonNull(requireContext().getExternalFilesDir("building1.xls"))));
Storage storage = new Storage(client);
storage.createFile(
bucketID,
ID.Companion.unique(),
InputFile.Companion.fromPath(String.valueOf(file)),
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
return;
}
assert result != null;
Log.d("Appwrite", result.toString());
})
);
}
Are you using https for the endpoint? Besides that maybe you don't have access to the bucket
I think I do,
String endpoint = "*************"
String project = "******"
String bucketID = "*******" etc
and then used it respectfully where they are required
Did you include v1 in the endpoint?
What are the permissions on your bucket?
write, read, delete. I deleted the old bucket and created a new one and i still got the same error
yes "*****us92.gitpod.io/v1"
Can you share a screenshot?
sure
I meant in the Appwrite console
ok
Permission is fine...the only other thing I can think of is mismatching project id or bucket id
well, It worked fine few days ago. Maybe I will generate a new endpoint key, or just reconnect repo to appwrite API and see if it works
Double check your endpoint too. Especially the region part
[SOLVED] io.appwrite.exceptions.AppwriteException: Not found
Recommended threads
- Flutter Android oAuth is no more working
I currently don't get the oAuth login to work in flutter android. it works on ios and on web. but when try to use it on Android, i get to the point where the ca...
- I'm experiencing a critical bug on Appwr...
Hey <@870607367597850624> team / support š I'm experiencing a critical bug on Appwrite Cloud that's blocking my production Flutter app. I've already filed GitH...
- Database listRows method call failing in...
I'm getting an error when trying to use listRows in a flutter app on a database. It seems something in the backend has changed because the production version of...