reactjs - 将 React 应用程序上传到 Netlify 并收到 401
问题描述
这是我的 netlify 商店的链接 - https://find-my-rescue.netlify.app/
这是我的 GitHub 链接 - https://github.com/mrshawnhum/capstone-starter-mrshawnhum
当我在我的 VS 代码中运行 Yarn Start 时,一切都已加载并运行。然而,我部署到 Netlify,我收到了关于我的 api 的这条消息。
{"type":"https://httpstatus.es/401", "status":401, "title":"Unauthorized", "detail":"Access token 无效或过期"}
它不应该是我的访问令牌,因为当我给它一个 api 密钥和密钥时,我使用了来自 github 的 petfinder-sdk 来生成我的令牌密钥。
解决方案
推荐阅读
- r - 根据另一列 R 的条件创建函数
- python - 在 GeoPandas 中,在用户定义的纬度经度框中选择(线串)数据
- azure - 您能否建议如何解决 azure web 应用程序的 URL 重写规则问题?
- windows - 使用 Powershell 创建交互式计划任务
- r - 使用 sep=" \ " 时出现单独的 {tidyr} 错误的问题
- python - 如何键入仅使用构造函数可能返回类型的子集的函数?
- json - 如何使用 jq 计算中位数?
- python - 尝试通过 pygame 播放歌曲但出现 libmpg123-0.dll 错误
- java - 可空的原始长函数参数,你能检查传递的值是否确实为空吗?
- knockout.js - 为什么 Knockoutjs 不能使用单独文件中的脚本?