-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to discover OP endpoint URL #31
Comments
Have you recently reinstalled your dependencies? I've got a feeling you may be missing a dependency of passport-steam. Are you running NPM3? |
Also, are you reverse proxying through NGINX or such? |
Just reinstalled passport-steam on NPM3, no change. |
|
Not reverse proxying. I think you meant I can curl the url and I get the XML file so I don't think it's a firewall issue. |
Yes, sorry - stressful day at work. Do you have any middlewares, configs, or anything else we can use to get replicate the issue? May I also ask for a full error log? If you're not comfortable with publicly posting the info feel free to email me. |
I'm using express, express-session, the latest passport and the latest passport-steam. The full log from launch to the second error at the callback (skipped the first for some reason) is as follows:
The second error occurs if I refresh the error page and the site attempts to process the blob again. Error when it fails to even load the steam oauth page for user sign-in:
|
So looks like issue is that steam is returning an invalid URL/OpenID blob that's incompatible with the underlying OpenID dependencies. This means it's at Steam's end and not much we can do, maybe you could verify your API key, try on different machines/networks? Going to do some extra digging in the meantime and ensure it's not an issue with the package. See here: https://github.com/havard/node-openid/blob/7e605d0a85dfcadb1ea2102cb58241e83e29dae6/openid.js#L1241-L1244, essentially, Steam is giving you an error |
It just seems rather strange with the error regarding not finding the endpoint. |
True, took a bit of digging into the source to find it |
Seems to be working on a different server, very strange. I'll take a dig through the server setup and see if I can resolve this. I'll post on this issue if I find a fix. |
It could be a DNS issue, or possibly the server was IP blocked by Steam, though unlikely. Going to close the issue as it's resolved, although please do update if you find the direct cause. |
Flushing the DNS followed by a system restart seemed to fix the issue. |
I have the same problem when ever i deploy to Firebase Functions, but not when running my local machine. But i cant realy reboot the system and/or flush the DNS |
Never mind, dug a bit deeper, Firebase dont allow external API calls on free trier, upgrading to a paid plan fixed the issue |
I have this error only on 1 server of 3. Express, Nodejs and packages are the same, only Ubuntu version is different, the not working server is newer. NTP is on and synced, the time is correct. Thanks |
Using the recommended code
Error:
Failed to discover OP endpoint URL (message: No providers found for the given identifier)
Occasionally the site will progress past this stage however, resulting in the next error:
Failed to verify assertion (message: No OpenID provider was discovered for the asserted claimed identifier)
I tried the solution in #27 but I couldn't get it to work. Has anyone gained any further understanding on this issue?
To add to this, this has been working in my app for 8 months or so, none of the code has been changed.
The text was updated successfully, but these errors were encountered: