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
- User (role: guests) missing scope (accou...
1) Navigate to https://cloud.appwrite.io/console/login and login 2) Navigate to your account (https://cloud.appwrite.io/console/account) 3) Click the "Logout" ...
- Realtime connection with authenticated s...
I'm trying to get a realtime connection set up in Next.js, in a client side component for "chats." I have tested my code with a collection that has "any" read p...
- How appwrite functions actually work how...
**here is the client side code ** const handleSubmit = async () => { console.log("Form submitted:", { landlordId, tenantDetails, selectedP...