#Please help. Getting Error 401

5 messages · Page 1 of 1 (latest)

ancient breach
#

Hello guys, I'm having a big problem right now.

I have an Appwrite instance in my server, that was using a public ip, I was generating certificates for it using NPM and using Cloudflare as my DNS.

The problem started when my ISP messed up something, and turned my public IP off. So what I did to try to sort out the problem was to create two cloudflare tunnels:

  • One for my Appwrite installation
  • One for my Sveltekit frontend application

The problem is that I cannot loggin anymore into my web app, for some reason I get error 401 when I enter my webapp and when I try to loggin I get:

{
  "message": "User (role: guests) missing scope (account)",
  "code": 401,
  "type": "general_unauthorized_scope",
  "version": "1.5.5"
}

But watching the network tab on browser dev tools I can see I receive the Session Object correctly, I just cant get into the app.

If someone can help me It will be really appreciated.

Edit:
By the way, I have tested to:

  • Change CORS policy by changing platforms hostname on appwrite console
  • Use another user
  • Change password from console
upbeat light
ancient breach
#

Hello Steven, yes I'm tunneling using HTTPS. And I did not change my domains.

Appwrite and Sveltekit are on separate containers but on same local network, so I try to change sveltekit to use the local IP instead of appwrite domain. But then I got blocked by "mixed error" . Something that tells me I cannot access HTTP stuff from an HTTPS resource.

Idk what to do right now. I'm waiting till tomorrow to see if my ISP fix this mess

upbeat light
ancient breach
#

When I use the domain I get the problem described on the original post Steven