Rank 2: Process
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()); }) );
}