Back

Why do I get this error? POST https://cloud.appwrite.io/v1/account/tokens/magic-url 404 (Not Found)

  • 0
  • Auth
  • Web
  • Cloud
Rond
26 Mar, 2024, 02:21

I run this:

TypeScript
      const res = await account.createMagicURLToken(ID.unique(), email, location.origin);
TL;DR
Developers are receiving a 404 error when accessing a specific URL. It appears that the issue might be caused by using an outdated version of the appwrite npm package. Updating the appwrite dependency to the latest version should resolve the problem.
Rond
26 Mar, 2024, 02:22

It seems like I have "appwrite": "^14.0.0",

in my dependencies, and I think this is the problem.

How do I update?

Rond
26 Mar, 2024, 02:22

I use bun

Rond
26 Mar, 2024, 02:25

https://www.npmjs.com/package/appwrite

It looks like appwrite 1.5 is not ready in the cloud (latest npm is version 1.4)

Rond
26 Mar, 2024, 02:28

Hey @Steven I stil l can't manage to make it work, can you assist with this please?

Steven
26 Mar, 2024, 02:36

I don't know bun, but I know doing something like this in node is annoying because node will see you have the package installed already and won't do anything to it. I often have to delete the node_modules folder and then install dependencies again

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