appwrite / sdk-for-web

[READ-ONLY] Official Appwrite Web SDK ๐Ÿงก
https://appwrite.io
BSD 3-Clause "New" or "Revised" License
271 stars 58 forks source link

๐Ÿ› Bug Report: registration using websdk fails with API fetch loading failed #49

Closed psschand16 closed 1 year ago

psschand16 commented 1 year ago

๐Ÿ‘Ÿ Reproduction steps

Using Web SDK

Interacting with self hosted appwrite endpoint hosted on a subdomain endpoint.

The SDK fails at times mysteriously , at times it works

can you please let me know if I am missing anything.

appwrite error Screenshot 2023-01-31 090248

๐Ÿ‘ Expected behavior

fetch should be successful

๐Ÿ‘Ž Actual Behavior

api fetch is failing for login/Register

๐ŸŽฒ Appwrite version

Version 0.10.x

๐Ÿ’ป Operating system

Windows

๐Ÿงฑ Your Environment

html page on Live server, acessed via chrome browser

๐Ÿ‘€ Have you spent some time to check if this issue has been raised before?

๐Ÿข Have you read the Code of Conduct?

stnguyen90 commented 1 year ago

@psschand16, thanks for creating this issue! ๐Ÿ™๐Ÿผ I can see the 401 response status, but would you please share the HTTP response body for the create email session API call?

psschand16 commented 1 year ago

Hi @stnguyen90 Thanks for looking into this.

you can test the same html/javascript app at the below link https://appwrite.omggn.tk/

I donot see any response, please find screenshot below

image

image
stnguyen90 commented 1 year ago

@psschand16 thanks for all the info! ๐Ÿ™๐Ÿผ I think this is just a problem with the playground for web: https://github.com/appwrite/playground-for-web/issues/80