apiClient.createProjectBranchDatabase works but prints 404 unhandled exception
I'm running this code and it works, the database is created.
While it works and return 201, it still logs an error all the time:
Unhandled Rejection: AxiosError: Request failed with status code 404
It looks like internally it fails somehow but ends up creating the database.
Is there any explanation to this behavior ?2 Replies
foreign-sapphire•3w ago
Hey!
I tried replicating but I can't. I'm getting 201 success, but never seeing a 404.
Are you still getting this error?
exotic-emeraldOP•3w ago
Yes, actually I hooked an axios interceptor to the neon client to get more log on this error.
Here the output
So, it looks like AFTER creating a DB, the neon TS lib does a get databases
and for some reason calls
branches//databases which is incorrect
Update on this, it was my bad, thanks @Sam