#Unhandled Runtime ErrorAppwriteException: Network request failed

14 messages · Page 1 of 1 (latest)

fallen iris
#

when running in locahost:3000 got this error.
Tech: Nextjs
Hostname: localhost

empty compass
fallen iris
#

import {Client, Account, ID, Databases, Storage} from "appwrite";
const client = new Client()
.setEndpoint("https://cloud.appwrite.io/v1")
.setProject(process.env.NEXT_PUBLIC_APPWRITE_PROJECT_ID!)

const account = new Account(client);
const databases = new Databases(client);
const storage = new Storage(client);

export {client, account, databases, storage, ID};

empty compass
fallen iris
#

I couldn't get the solution, so moved to different one! I will close this issues thanks

rose eagle
#

it should work with the !, but it has always given me problems (idk why)
that's why I just do as string

fallen iris
rose eagle
#

So other people who face a similar issue can use your solution!

fallen iris
#

Actually could solve it, and had to complete the project, so used mongoDB instead