swaggymacro / cs2-weaponpaints-website Goto Github PK
View Code? Open in Web Editor NEWWebsite for Nereziel/cs2-WeaponPaints plugins
License: GNU General Public License v3.0
Website for Nereziel/cs2-WeaponPaints plugins
License: GNU General Public License v3.0
如何修复此错误(进入网站点击Steam登录):
InternalOpenIDError: Failed to discover OP endpoint URL
at C:\Users\Administrator\Desktop\cs2-WeaponPaints-Website-0.2.2\node_modules\@passport-next\passport-openid\lib\passport-openid\strategy.js:249:52
at C:\Users\Administrator\Desktop\cs2-WeaponPaints-Website-0.2.2\node_modules\openid\openid.js:757:14
at C:\Users\Administrator\Desktop\cs2-WeaponPaints-Website-0.2.2\node_modules\openid\openid.js:547:13
at C:\Users\Administrator\Desktop\cs2-WeaponPaints-Website-0.2.2\node_modules\openid\openid.js:503:11
at C:\Users\Administrator\Desktop\cs2-WeaponPaints-Website-0.2.2\node_modules\openid\http.js:41:9
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
感谢
For some reason the website does not work on all browsers. So it doesn't work in steam browser, but it works in chrome. The buttons don't work, when pressing knives or gloves, for example. But at the same time, authorization works in any browser. What could be causing this?
点击登陆后跳转到白底黑字页面,内容如下:
Access Denied
You don't have permission to access "http://steamcommunity.com/openid/login?" on this server.
Reference #18.1452c817.1713196703.35adbc75
https://errors.edgesuite.net/18.1452c817.1713196703.35adbc75
src/config.json 中填写 "PROTOCOL": "https" 和 "PROTOCOL": "http" 均出现该现象;如果删去 PROTOCOL 字段则可以跳转登陆,但登陆后显示 Invalid return protocol。
@SwaggyMacro i have deployed this website on Ubtuntu 22.04 and with Node v18.20.2
[config.json]
PROTOCOL:http Port:80
这个是网站:http://csl1mit.icu/ 虽然登录之后跳转了 但是并没有成功的登录 我大概查了一下socket.io文档有说 没有开启粘性会话会导致 但是我没有node.js的开发经验无从下手。
还有一些BUG.
默认的配置文件中
PROTOCOL项必须修改为http port必须修改为80 如果按照默认的配置开启服务器后 进入网站登录后的地址会变为 https://域名....
而且不带端口号
请问这是什么问题导致的?抱歉我看不懂报错...
root@armbian:~/skin# npm run startLinux
> [email protected] startLinux
> nodemon -x 'node . || touch src/app.js'
[nodemon] 3.1.0
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): *.*
[nodemon] watching extensions: js,mjs,cjs,json
[nodemon] starting `node . || touch src/app.js`
/root/skin/node_modules/passport-steam/lib/passport-steam/strategy.js:108
if (!req.query['openid.claimed_id']?.startsWith(OPENID_CHECK.claimed_id)) return done(null, false, { message: 'Claimed identity is invalid.' });
^
SyntaxError: Unexpected token '.'
at wrapSafe (internal/modules/cjs/loader.js:915:16)
at Module._compile (internal/modules/cjs/loader.js:963:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.<anonymous> (/root/skin/node_modules/passport-steam/lib/passport-steam/index.js:2:16)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
[nodemon] clean exit - waiting for changes before restart
[nodemon] restarting due to changes...
[nodemon] starting `node . || touch src/app.js`
/root/skin/node_modules/passport-steam/lib/passport-steam/strategy.js:108
if (!req.query['openid.claimed_id']?.startsWith(OPENID_CHECK.claimed_id)) return done(null, false, { message: 'Claimed identity is invalid.' });
^
SyntaxError: Unexpected token '.'
at wrapSafe (internal/modules/cjs/loader.js:915:16)
at Module._compile (internal/modules/cjs/loader.js:963:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.<anonymous> (/root/skin/node_modules/passport-steam/lib/passport-steam/index.js:2:16)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
[nodemon] clean exit - waiting for changes before restart
[nodemon] Internal watch failed: ENOSPC: System limit for number of file watchers reached, watch '/root/skin/src/public/images/econ/stickers/katowice2019/sig_bntet_png.png'
Error: Cannot find module 'express'
研究了很多天不明白为什么...网站日志也显示数据库已连接
InternalOpenIDError: Failed to discover OP endpoint URL
at E:\cs2skin\node_modules@passport-next\passport-openid\lib\passport-openid\strategy.js:249:52
at E:\cs2skin\node_modules\openid\openid.js:757:14
at E:\cs2skin\node_modules\openid\openid.js:547:13
at E:\cs2skin\node_modules\openid\openid.js:503:11
at E:\cs2skin\node_modules\openid\http.js:41:9
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
因为老哥你的服务需要直接访问steam才能使用,所以自己写了一个 通过本地加速steam服务器实现直接访问。但是不知道修改数据库数据后,怎么通知服务器进行更新
点击登录遇到问题:
InternalOpenIDError: Failed to discover OP endpoint URL
at /data/user23202791/lgsm/wp_manage/node_modules/@passport-next/passport-openid/lib/passport-openid/strategy.js:249:52
at /data/user23202791/lgsm/wp_manage/node_modules/openid/openid.js:757:14
at /data/user23202791/lgsm/wp_manage/node_modules/openid/openid.js:547:13
at /data/user23202791/lgsm/wp_manage/node_modules/openid/openid.js:503:11
at /data/user23202791/lgsm/wp_manage/node_modules/openid/http.js:41:9
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
一开始认为是网络连接问题,配置了 steamcommunity 302 之后测试连接社区页面正常:
(base) user23202791@Ubuntu-6-3090:~/lgsm/wp_manage$ curl https://steamcommunity.com/openid
<?xml version="1.0" encoding="UTF-8"?>
<xrds:XRDS xmlns:xrds="xri://$xrds" xmlns="xri://$xrd*($v*2.0)">
<XRD>
<Service priority="0">
<Type>http://specs.openid.net/auth/2.0/server</Type>
<URI>https://steamcommunity.com/openid/login</URI>
</Service>
</XRD>
</xrds:XRDS>
(base) user23202791@Ubuntu-6-3090:~/lgsm/wp_manage$ curl https://steamcommunity.com
<!DOCTYPE html>
<html class=" responsive" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="theme-color" content="#171a21">
<title>Steam Community</title>
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
......(后面网页内容省略)
但是点击登录后上述问题依然存在,请问是否可能是其他问题?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.