Back

GET http://localhost/v1/account net::ERR_INSUFFICIENT_RESOURCES

  • 0
  • Web
Berserker
1 Apr, 2023, 13:49

okiee leme try

TL;DR
Title: Error: ERR_INSUFFICIENT_RESOURCES when accessing localhost Messages: - A user is experiencing an access issue when using different SDKs for signing and using document services. They suspect this is the reason for the error. - Another user suggests that the problem might be with the account.get() function, not the node-appwrite. - The solution suggested is to avoid using server-side rendering and to not use the node-appwrite in the client-side code. - There is also a concern about multiple requests being made to the server. - The error message indicates that the logged-in user does not have sufficient permissions to access
Arth
1 Apr, 2023, 13:49

according to the error message, the current logged in user doesn't have sufficient permissions

Arth
1 Apr, 2023, 13:49

how are you signing in?

Berserker
1 Apr, 2023, 13:49

using google

Arth
1 Apr, 2023, 13:50

interesting

Arth
1 Apr, 2023, 13:50

give me a minute

Berserker
1 Apr, 2023, 14:02

another problem is that infinite no. of requests are also being made to my server @Arth

safwan
1 Apr, 2023, 14:07

seems like you're using nextjs. don't do nay server side rendering, and don't use node-appwrite in your client side code. See what happens then

Berserker
1 Apr, 2023, 14:09

what's the soln. then 😭 @safwan

safwan
1 Apr, 2023, 14:09

I just told you the solution...

Berserker
1 Apr, 2023, 14:09

ok then i will make it by using node-appwrite inside a appwrite function

safwan
1 Apr, 2023, 14:10

for creating a document? seems a little overkill

Berserker
1 Apr, 2023, 14:11

@safwan yes i realized 😭

Berserker
1 Apr, 2023, 14:12

@safwan bro still the error comes after removing the node-appwrite

Berserker
1 Apr, 2023, 14:16

@safwan and @Arth the problem was not with the node-appwrite , I tried to use account.get() that was the culprit

Arth
1 Apr, 2023, 14:27

how come?

Berserker
1 Apr, 2023, 14:30

idk @Arth

Berserker
1 Apr, 2023, 14:32

@Arth @safwan I think this is the reason , I have a logged in the user using a different client constructor in a different jsx file , so when i tried to access it inside another jsx file using another instance of client constructor caused the error

Berserker
1 Apr, 2023, 14:33

@Arth that's why the access issue might have come , rn things make sense for me

Arth
1 Apr, 2023, 14:37

ah yes

Arth
1 Apr, 2023, 14:37

wait

Arth
1 Apr, 2023, 14:37

what

Arth
1 Apr, 2023, 14:38

which sdk are you using to sign and which sdk are you using to use documents service πŸ˜‚

Arth
1 Apr, 2023, 14:38

crazy man πŸ˜‚

Berserker
1 Apr, 2023, 15:13

@Arth I didn't get it

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