[GH-ISSUE #445] Cannot read properties of undefined (reading 'map') #157

Closed
opened 2026-02-26 20:35:56 +03:00 by kerem · 7 comments
Owner

Originally created by @psen888 on GitHub (Sep 15, 2024).
Original GitHub issue: https://github.com/dreamhunter2333/cloudflare_temp_email/issues/445

小白部署有点困难,最后步骤。前端报错Cannot read properties of undefined (reading 'map')麻烦大佬解答下,谢谢

预期行为

部署方式

  • cli 部署
  • 用户界面部署

浏览器环境

Originally created by @psen888 on GitHub (Sep 15, 2024). Original GitHub issue: https://github.com/dreamhunter2333/cloudflare_temp_email/issues/445 小白部署有点困难,最后步骤。前端报错Cannot read properties of undefined (reading 'map')麻烦大佬解答下,谢谢 ## 预期行为 ## 部署方式 - [ ] cli 部署 - [x] 用户界面部署 ## 浏览器环境
kerem closed this issue 2026-02-26 20:35:56 +03:00
Author
Owner

@dreamhunter2333 commented on GitHub (Sep 17, 2024):

看起来是 worker 后台配置不正确,检查下worker 的配置

<!-- gh-comment-id:2356306138 --> @dreamhunter2333 commented on GitHub (Sep 17, 2024): 看起来是 worker 后台配置不正确,检查下worker 的配置
Author
Owner

@dreamhunter2333 commented on GitHub (Sep 17, 2024):

可以 F12 看下 openapi settings api 的返回值

<!-- gh-comment-id:2356308346 --> @dreamhunter2333 commented on GitHub (Sep 17, 2024): 可以 F12 看下 openapi settings api 的返回值
Author
Owner

@hoey94 commented on GitHub (Nov 16, 2024):

settings 的GET请求发送的有问题,嵌套了两层
@dreamhunter2333

请求 URL:
https://mail.77558.icu/tmail-worker.2997806434.workers.dev/open_api/settings
GET
200 OK
104.21.58.199:443
strict-origin-when-cross-origin

<!-- gh-comment-id:2480489427 --> @hoey94 commented on GitHub (Nov 16, 2024): settings 的GET请求发送的有问题,嵌套了两层 @dreamhunter2333 请求 URL: https://mail.77558.icu/tmail-worker.2997806434.workers.dev/open_api/settings GET 200 OK 104.21.58.199:443 strict-origin-when-cross-origin
Author
Owner

@dreamhunter2333 commented on GitHub (Nov 16, 2024):

tmail-worker.2997806434.workers.dev/open_api/settings

你发送的这个 url 可以正常使用啊 @hoey94

<!-- gh-comment-id:2480503015 --> @dreamhunter2333 commented on GitHub (Nov 16, 2024): > tmail-worker.2997806434.workers.dev/open_api/settings 你发送的这个 url 可以正常使用啊 @hoey94
Author
Owner

@hoey94 commented on GitHub (Nov 16, 2024):

tmail-worker.2997806434.workers.dev/open_api/settings

你发送的这个 url 可以正常使用啊 @hoey94

是最新版本的0.8 front有问题,无法与worker通信。 从front发送的api
https://mail.77558.icu/tmail-worker.2997806434.workers.dev/open_api/settings
期望是:
https://tmail-worker.2997806434.workers.dev/open_api/settings

部署front 0.7.6版本没问题

<!-- gh-comment-id:2480504691 --> @hoey94 commented on GitHub (Nov 16, 2024): > > tmail-worker.2997806434.workers.dev/open_api/settings > > 你发送的这个 url 可以正常使用啊 @hoey94 是最新版本的0.8 front有问题,无法与worker通信。 从front发送的api https://mail.77558.icu/tmail-worker.2997806434.workers.dev/open_api/settings 期望是: https://tmail-worker.2997806434.workers.dev/open_api/settings 部署front 0.7.6版本没问题
Author
Owner

@dreamhunter2333 commented on GitHub (Nov 16, 2024):

tmail-worker.2997806434.workers.dev/open_api/settings

你发送的这个 url 可以正常使用啊 @hoey94

是最新版本的0.8 front有问题,无法与worker通信。 从front发送的api https://mail.77558.icu/tmail-worker.2997806434.workers.dev/open_api/settings 期望是: https://tmail-worker.2997806434.workers.dev/open_api/settings

部署front 0.7.6版本没问题

检查下 front 的后端 url 配置,第一个看起来是配置的时候没加 https:// 前缀导致的

<!-- gh-comment-id:2480667122 --> @dreamhunter2333 commented on GitHub (Nov 16, 2024): > > > tmail-worker.2997806434.workers.dev/open_api/settings > > > > > > 你发送的这个 url 可以正常使用啊 @hoey94 > > 是最新版本的0.8 front有问题,无法与worker通信。 从front发送的api https://mail.77558.icu/tmail-worker.2997806434.workers.dev/open_api/settings 期望是: https://tmail-worker.2997806434.workers.dev/open_api/settings > > 部署front 0.7.6版本没问题 检查下 front 的后端 url 配置,第一个看起来是配置的时候没加 `https://` 前缀导致的
Author
Owner

@dreamhunter2333 commented on GitHub (Nov 30, 2024):

检查下 front 的后端 url 配置,第一个看起来是配置的时候没加 https:// 前缀导致的

<!-- gh-comment-id:2508856473 --> @dreamhunter2333 commented on GitHub (Nov 30, 2024): 检查下 front 的后端 url 配置,第一个看起来是配置的时候没加 https:// 前缀导致的
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cloudflare_temp_email#157
No description provided.