Back

Appwrite Web Cloud Error

  • 0
  • Databases
  • Web
Himanshu...🥀
18 Nov, 2023, 16:32

now no one replies

TL;DR
The user is experiencing an error with the Appwrite Web Cloud. They are recommended to read the documentation and familiarize themselves with using the Appwrite REST API. It is suggested to change 'web' to 'rest' in the references. It is mentioned that the error may be due to configuration, setup, build, or compatibility with Next.js, and turning features on/off may help identify the issue. A solution is proposed to try disabling server-side rendering in Next.js. The user is asked to provide their project ID for further investigation. It is recommended to try using the Appwrite client-side and compare development and production environments. The user
D5
18 Nov, 2023, 16:33

Please wait

fafa
18 Nov, 2023, 16:33

You should definitely get some more patience, if you don't, no one will be able to help you.

Himanshu...🥀
18 Nov, 2023, 16:35

<:appwritepeepo:1156975874852270110> huh

Himanshu...🥀
18 Nov, 2023, 16:35

Am currently working on it

D5
18 Nov, 2023, 16:36

Seems like connection is bleing blocked. I would try disabling ssr

Himanshu...🥀
18 Nov, 2023, 16:37

if am building a web app obviously i would use SEO

fafa
18 Nov, 2023, 16:37

Honestly, I recommend using Rest API if you use NextJS. The SDK support is mainly only Client-sided, so for me the SDK was also completely useless. 😄

D5
18 Nov, 2023, 16:38

Not precisely. Discord is a web app and doesn't needs SEO in user-generated content

fafa
18 Nov, 2023, 16:39

A normal website would want SEO, if you like it or not, it's something a user wants. My personal opinion is that the SDK is obviously not made for frameworks like NextJS

fafa
18 Nov, 2023, 16:39

NextJS has too many references towards Server-Side, unless you make literally every page use the client, it's not recommended to use the SDK

D5
18 Nov, 2023, 16:40

Yes, but not for user generated content. It's being improved to have better support for SSR

fafa
18 Nov, 2023, 16:40

It might be improved, but as said, as the current state I recommend just using the RestAPI

Himanshu...🥀
18 Nov, 2023, 16:40

am just thinking that

fafa
18 Nov, 2023, 16:40

it can do everything anyway, it might just need a little bit more code that the sdk normally does for you, but it's less time consuming in the long run.

Himanshu...🥀
18 Nov, 2023, 16:42

how to off it

Himanshu...🥀
18 Nov, 2023, 16:54

but how to use the REST

Meldiron
18 Nov, 2023, 17:02

Hey 👋 If you provide me with your project ID, I can check if there are any server errros on our end.

Other than that, I would recommend trying it client-side, just to see if that solves the problem. Also comparing development and production might reveal some information. I know basics about Next.js, but I think they do some changes to fetch - that possible doesnt play well with Appwrite. Do you know how that could be checked with Next.js? If that's the case, it would be great if you reproduced it in a simple demo app, so we can easily investigate it and write a fix in our SDKs.

Himanshu...🥀
18 Nov, 2023, 17:04

projectId: moneytube

Meldiron
18 Nov, 2023, 17:10

I dont see any internal errors regarding document creation from your project, so the socket timeout is likely happening from the client-side.

Next.js is very robust framework, and this could be due to configuration, setup, build or compatiblity with SDK. Since I am not expert with Next.js, I cant give exact answers. Trying to turn features on/off is a great step towards figuring out what exactly it's that Next doesnt like about Appwrite. I have seen projects built with Next.js both using server-side rendering and client-side rendering, so I am sure there is some solution.

I would recommend trying what D5 suggested, and seeing if not using SSR makes it work properly.

Himanshu...🥀
18 Nov, 2023, 17:11

ohky thnkx for your time

fafa
18 Nov, 2023, 17:23

Heyo. Check the references in the docs and change web to rest

fafa
18 Nov, 2023, 17:24

You can find specific info in the Docs -> Rest API about certain endpoints

fafa
18 Nov, 2023, 17:28

I recommend reading through the docs and get a better understanding of how to properly use the Appwrite REST. If you don't know how make fetch requests, please read the nextjs docs: https://nextjs.org/docs/app/building-your-application/data-fetching/fetching-caching-and-revalidating https://nextjs.org/docs/app/building-your-application/routing/route-handlers

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more