getting {"name":"AppwriteException","code":0,"type":"","response":""} on operations via node
- 0
- Self Hosted
- Web
- Storage
Hey, so im running a express node server and im trying to delete/upload files over it,
await storage.deleteFile(
process.env.APPWRITE_BUCKET_ID as string,
player.statsProfile.playerProfileSocial.profileBannerId
);
This implementation works fine over localhost, but on production deployed via docker i get
{"name":"AppwriteException","code":0,"type":"","response":""}
as response on every operation
i tought maybe its a issue with nginx so i just directly called the ipv4 where appwrite runs on, same result...
More information, this is how i initialise the storage instance ->
import { Storage } from "node-appwrite";
const sdk = require("node-appwrite");
let client = new sdk.Client();
client
.setEndpoint(process.env.APPWRITE_ENDPOINT)
.setProject(process.env.APPWRITE_PROJECT_ID)
.setKey(process.env.APPWRITR_KEY)
.setSelfSigned();
let storage = new sdk.Storage(client);
export function ApprWriteStorage(): Storage {
return storage;
}
most annoying part is that on localhost everything runs fine, so everytime i want to debug something i have to redeploy
i removed ```typescript .setSelfSigned();
same result
credentials and everything is fine, i use the same creds on localhost and everything runs smoothly
so it probably has something to do with the connection of the appwrite api endpoint itself?
the error really tells me nothing lmao
maybe it isnt that productive at all using appwrite just for storing files or?
Recommended threads
- Selfhost - Starting Docker containers fa...
I am stuck at installing appwrite. Specifically, the containers dont want to start up. The images are downloaded and ready. Dockhand is reporting containers st...
- It says domain already used but I have d...
I accidentally deleted the project in which I used my domain originally (orexia.app) from name.com. Now I am trying to add it to a different project and it says...
- Is this normal in the self host custom d...
when i try to add custom domain to the project did not see this in 1.8.0 ok when pressed the retry it says "DNS verification failed with resolver 8.8.8.8. Domai...