uni-app Error: getaddrinfo ENOTFOUND 96f0e031-f37a-48ef-84c7-2023f6360c0a.bspapp.com
uni-app Error: getaddrinfo ENOTFOUND 96f0e031-f37a-48ef-84c7-2023f6360c0a.bspapp.com
产品分类 | 描述 |
---|---|
uniapp/小程序/微信 |
| PC开发环境操作系统 | Windows | | PC开发环境操作系统版本号 | 23H2 | | HBuilderX类型 | 正式 | | HBuilderX版本号 | 3.99 | | 第三方开发者工具版本号 | 微信开发者工具 Stable 1.06.2310080 | | 基础库版本号 | 3.32 | | 项目创建方式 | HBuilderX |
操作步骤:
打开运行 发布小程序 结果是 发布微信小程序失败.
预期结果:
直接跳转到小程序 运行
实际结果:
[HBuilder] 11:15:50.521 项目 ‘TX-Recruit-front-end’ 发布微信小程序失败.
bug描述:
TypeError: Cannot read properties of undefined (reading 'isStringLiteral')
[HBuilder] 11:15:23.484 at hasEscapeQuote (D:\exe_work\HBuilderX.3.96.2023110403\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\util.js:278:12)
[HBuilder] 11:15:23.484 at Object.CallExpression (D:\exe_work\HBuilderX.3.96.2023110403\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\visitor.js:211:17)
...
[HBuilder] 11:15:50.521 项目 'TX-Recruit-front-end' 发布微信小程序失败.
您好问下 最后解决了吗
The error getaddrinfo ENOTFOUND 96f0e031-f37a-48ef-84c7-2023f6360c0a.bspapp.com
indicates that the DNS resolution for the domain 96f0e031-f37a-48ef-84c7-2023f6360c0a.bspapp.com
failed. This means that the domain name could not be resolved to an IP address, which is necessary for establishing a network connection.
Here are some steps you can take to troubleshoot and resolve this issue:
1. Check the Domain Name
- Ensure that the domain name
96f0e031-f37a-48ef-84c7-2023f6360c0a.bspapp.com
is correct and properly spelled. - If this domain is part of a service you are using (e.g., a backend service), verify that the domain is active and accessible.
2. Check Your Internet Connection
- Make sure your device has a stable internet connection.
- Try accessing other websites or services to confirm that your internet connection is working.
3. DNS Resolution Issues
- The issue might be related to DNS resolution. Try flushing your DNS cache:
- On Windows: Open Command Prompt and run
ipconfig /flushdns
. - On macOS: Open Terminal and run
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
.
- On Windows: Open Command Prompt and run
- Alternatively, try changing your DNS server to a public DNS like Google DNS (
8.8.8.8
and8.8.4.4
) or Cloudflare DNS (1.1.1.1
).
4. Check for Network Restrictions
- Ensure that there are no network restrictions or firewalls blocking access to the domain.
- If you are on a corporate or restricted network, contact your network administrator.
5. Check the Service Status
- If the domain is part of a third-party service, check the status of the service to ensure it is not down or experiencing issues.
6. Retry the Request
- Sometimes, the issue might be temporary. Wait for a few minutes and retry the request.
7. Debugging in uni-app
- If you are using uni-app, ensure that the network request is correctly configured.
- Check the code where the request is made and ensure that the URL is correctly formed.
8. Contact the Service Provider
- If the domain is part of a service you are using, and you continue to experience issues, contact the service provider for support.
Example Code Check in uni-app:
uni.request({
url: 'https://96f0e031-f37a-48ef-84c7-2023f6360c0a.bspapp.com/api/endpoint',
method: 'GET',
success: (res) => {
console.log('Response:', res.data);
},
fail: (err) => {
console.error('Request failed:', err);
}
});