jason5ng32 / MyIP

The best IP Toolbox. Easy to check what's your IPs, IP geolocation, check for DNS leaks, examine WebRTC connections, speed test, ping test, MTR test, check website availability, whois search and more! || 🇨🇳 可能是最好用的IP工具箱。轻松检查你的 IP,IP 地理位置,检查DNS泄漏,检查 WebRTC 连接,速度测试,ping 测试,MTR测试,检查网站可用性,查询 Whois 信息等等。
https://ipcheck.ing
MIT License
6.27k stars 751 forks source link

程序设置中没有显示地图这一项。 #213

Closed shmilyabyy closed 5 months ago

shmilyabyy commented 5 months ago

Environment:

Description:

程序设置中没有显示地图,无法开启地图。BING_MAP_API_KEY和ALLOWED_DOMAINS环境变量都已经设置了,api直接复制的,ALLOWED_DOMAINS是vps的公网ip。 image

Terminal Logs (include any error messages or stack traces):

> myip@3.0.0 start
> concurrently "npm run start-frontend" "npm run start-backend"

[0] 
[0] > myip@3.0.0 start-frontend
[0] > node frontend-server.js
[0] 
[1] 
[1] > myip@3.0.0 start-backend
[1] > node backend-server.js
[1] 
[1] node:internal/modules/esm/resolve:265
[1]     throw new ERR_MODULE_NOT_FOUND(
[1]           ^
[1] 
[1] Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/app/common/referer-check.js' imported from /app/api/map.js
[1]     at finalizeResolution (node:internal/modules/esm/resolve:265:11)
[1]     at moduleResolve (node:internal/modules/esm/resolve:933:10)
[1]     at defaultResolve (node:internal/modules/esm/resolve:1157:11)
[1]     at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:383:12)
[1]     at ModuleLoader.resolve (node:internal/modules/esm/loader:352:25)
[1]     at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:227:38)
[1]     at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:87:39)
[1]     at link (node:internal/modules/esm/module_job:86:36) {
[1]   code: 'ERR_MODULE_NOT_FOUND',
[1]   url: 'file:///app/common/referer-check.js'
[1] }
[1] 
[1] Node.js v20.13.1
[1] npm run start-backend exited with code 1
[0] Static file server running on port http://localhost:18966
jason5ng32 commented 5 months ago

It should be fixed now. #214

shmilyabyy commented 5 months ago

还是没有地图开关,这是为什么。 image image 没有报错了但是还是没有地图开关。 我api是bing的api没有错误,alloweddomain是填写的vps的公网ip。

shmilyabyy commented 5 months ago

可以了