Skip to main content
Participant
August 29, 2022
Question

Uncaught (in promise) Error: getMetadata request failed

  • August 29, 2022
  • 7 replies
  • 2295 views

I'm using the Adobe Embed PDF API to view PDFs on my site.

But I'm getting the 'Uncaught (in promise) Error: getMetadata request failed' error, when running on Chrome DevTools - Simulator (iPhone only).

(It was working fine in Edge DevTools - Simulator)

 

Error console:

bootstrap.js:2 Uncaught (in promise) Error: getMetadata request failed
    at bootstrap.js:2:959314
    at bootstrap.js:2:1653712
    at s (dc-mobx.js:16:23365)
    at Yt (dc-mobx.js:16:45501)
    at e.track (dc-mobx.js:16:48113)
    at e.onInvalidate (dc-mobx.js:16:23340)
    at e.runReaction (dc-mobx.js:16:47892)
    at pn (dc-mobx.js:16:50058)
    at ln (dc-mobx.js:16:49694)
    at dc-mobx.js:16:54954

 

The Adobe Demo page is getting the same error

 

How to resolve it?

This topic has been closed for replies.

7 replies

Participant
November 18, 2022

This issue is resolved for me. It was just a problem when using devtools to emulate an iphone. I pushed the solution to our test environment so i could test it on a real smartphone and the issue was gone. Thank you.

Participant
November 17, 2022

Are there any news on this issue?

Raymond Camden
Community Manager
Community Manager
November 17, 2022

I pinged internally just now - will let you know.

Participant
November 13, 2022

@Raymond Camden An updates on this? Affecting us also. We need to change viewer if this doesnt get fixed soon.

Participant
November 11, 2022

Getting this error as well - on all mobile viewports! So for example if I test in Chrome, it opens correctly in desktop view. If I change viewport in dev-tools to mobile i see getMetadata request failed?

Participant
November 11, 2022

This seems to be based on the user agent. In chrome dev tools, for example changing the user agent to

Mozilla/5.0 (iPhone; CPU iPhone OS 12_1 like Mac OS X; zh-CN) AppleWebKit/537.51.1 (KHTML, like Gecko) Mobile/16B92 UCBrowser/12.1.7.1109 Mobile AliApp(TUnionSDK/0.1.20.3)

Will not render the getMetadata failed error.

Participant
September 23, 2022

How is this not a priority problem/fix for you guys @Raymond Camden 

Raymond Camden
Community Manager
Community Manager
September 23, 2022

I've reported it, but unfortunately that's the best I can do for now. I did ask for an update however.

Participant
November 14, 2022

What is the current status of this bug? Please respond as soon as you can or we will have to abandon this api for something else.

Raymond Camden
Community Manager
Community Manager
September 12, 2022

I can confirm this - checking internally.

Participant
September 23, 2022

Is there any update on this? We suddenly ended up unable to view any of the PDFs when using Safari on iOS, and also what I realised is the same occurs when the window-size is mobile-based, such as using the responsive option on Chrome DevTools. We might need to move away from your tool just because of this, I tried every way to fix this with no success yet. 

Participant
September 12, 2022

I've had the same problem, even testing in real iPhones in safari, seems to be a lib issue as any PDF I've tested raised the same error.

It was all tested in the latest version available (2.28.1_3.1.0-ded612bc).