Images fail to load on Mapillary JS - Request limit?
@oscarlorentzon がすでに取り組んでいます。
2021年11月23日 から。
評価
この issue はまだ評価されていません。
説明
Basic information
Interesting image loading issue. After about 20 minutes of use - maybe 2,000 or so Mapillary images viewed, we find that all Mapillary images cease loading. My guess is that Mapillary is imposing a request limit, but I can't find any documentation on this.
Note : This bug was encountered by Safety in Numbers analysts and has only been seen on our system to date. I haven't had time yet to setup a clean Mapillary JS instance and confirm the behavior, but I wanted to post just in case there was a simple fix.
Any ideas?
MapillaryJS version: v4.0.0
System/Browser: Google Chrome Version 96.0.4664.45 (Official Build) (64-bit), Microsoft Edge Version 95.0.1020.53 (Official build) (64-bit)
Steps to Reproduce Behavior
- Open the Mapillary JS implementation on map.safe7y.com
- Open any Mapillary sequence by selecting a green dot on the map
- Hit the >, play button, on the Mapillary JS viewer
- Continue to play through sequences until the error occurs - typically this requires several thousand images.
Expected behavior
Images should continue to load without error.
Actual behavior
Images stop loading.
Additional information
After about 20 minutes of use - maybe 2,000 or so Mapillary images viewed, we find that all mapillary images cease loading and we get the following error messages:
Access to XMLHttpRequest at 'https://graph.mapillary.com/images?image_ids=568070274306488&fields=id,comp…erge_cc,mesh,quality_score,sfm_cluster,thumb_1024_url,thumb_2048_url,width' from origin 'https://map.safe7y.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status.
mapillary.module.js:85439 Failed to cache image (568070274306488). MapillaryError: Failed to fetch data
at chunk-vendors.843f91ed.js:38
(anonymous) @ mapillary.module.js:85439
graph.mapillary.com/…mb_2048_url,width:1 Failed to load resource: net::ERR_FAILED
mapillary.module.js:82228 Uncaught (in promise) MapillaryError: Failed to fetch data
at chunk-vendors.843f91ed.js:38
This is what it looks like from within our app.

I am taking over this code from the original developer, and I am Vue novice but it seems to be a verily vanilla implementation of the Mapillary JS viewer v4. All our code for this project is open source and I believe the majority of the API interface occurs here:
https://gitlab.com/54f37y/map_frontend/-/blob/master/src/components/map/Imagery.vue
https://gitlab.com/54f37y/map_frontend/-/blob/master/src/mapillary.js
What is frustrating about this particular error is that it seems to be time based. 30 minutes later the same, user, without refreshing, can load the images that threw errors before. Refreshing the page does not fix the issue, nor does clearing cookies, switching browsers, switching IP addresses or switching computers.
Once the user is able to review images the following error are thrown, which may be related:
Unchecked runtime.lastError: The message port closed before a response was received.
mapillary.module.js:48502
Uncaught (in promise) CancelMapillaryError: Request aborted by a subsequent request to id 223465049110163.
at QO._abortRequest (mapillary.module.js:86675)
at QO.moveTo$ (mapillary.module.js:86588)
at rR.moveTo (mapillary.module.js:87714)
at Imagery.vue:158
at u (runtime.js:63)
at Generator._invoke (runtime.js:293)
at Generator.next (runtime.js:118)
at n (asyncToGenerator.js:3)
at s (asyncToGenerator.js:25)
at asyncToGenerator.js:32
- 主要言語
- TypeScript
- スター
- 519
- フォーク
- 89
- 平均マージ
- 3日 18時間
- マージ済み PR(30日)
- 4
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
mapillary/mapillary-js のほかの issue
-
Missing tooltipsオープン
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
mapillary/mapillary-js#639 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
mapillary/mapillary-js#638 ·
-
Transition modeオープン
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
mapillary/mapillary-js#633 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
mapillary/mapillary-js#623 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
mapillary/mapillary-js#618 ·
mapillary/mapillary-js の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
cameri/nostream#811 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug p3 triaged
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
bug javascript P2-medium python release:v3.1
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
adrirubio/claude-deck#546 ·
メンテナーはふだん 1 日以内に返信
-
area: desktop area: website priority: P2 type: feature
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
appandflow/stim#3411 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
rjsf-team/react-jsonschema-form#5485 ·
メンテナーはふだん 2 日以内に返信