I’m running into a recurring issue with the Needle Engine login system. The editor keeps logging me out unexpectedly, and it happens multiple times a day (a lot). Whenever the Needle authentication server or Cloudflare has a hiccup, my Unity project immediately loses access to the Needle account and I’m forced to re-authenticate.
This has a pretty big impact on workflow:
Unity shows the “Needle Engine – No Commercial License” header even though I’m logged in.
The login panel gets stuck on “Getting user information…”.
Trying to log in opens a browser tab which then fails with a Cloudflare 500 Internal Server Error.
Because authentication is required for project generation and export, this effectively blocks development until their server is up again.
Request / Suggestion
It would help a lot if Needle Engine cached the login token locally for at least 24 hours (or ideally longer), so short outages don’t interrupt the editor. This would let developers continue working even if the auth server temporarily goes down.
Environment
Unity (latest)
Needle Engine package via npm
Region: EU (Amsterdam Cloudflare node seems involved in the error)
thanks for reporting - we’ll look into it. Normally the token is stored locally and only refreshed periodically/when necessary. It might be possible that refreshing fails/failed due to an outage (Cloudflare is reporting some issues at the moment).
Is this an issue you’ve experienced just now/today?
Do you think you could send a bugreport using the Needle Engine menu item? It contains logs that might be helpful in understanding what’s happening here.
I was investigating it a bit further… http://localhost:8424/api/user was down, probably crashed. Restarted it with npx needle-cloud@version-1 start-server
But then when i try to “Login“ again, i get a:
Internal server error Error code 500
The local server does also automatically restart if you’re using Unity with Needle Engine and it’s not running.
Authentication doesn’t run on every script recompile but it talks to the license server to get your auth information. If there’s an issue which causes the server to fail (if that’s what’s happening) Unity doesnt see your account information - hence falls back to the basic license.
Thanks for your patience - I haven’t received any report yet, does that mean it’s not working for you? If the automatic upload doesnt work you can try to send the ZIP via DM/Email if that’s possible
It eems like a global problem at Cloudflare unfortunately - not even https://npmjs.com loads for me right now. Again sorry for the inconvenience - still looking into this