Skip to content

Conversation

@sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Dec 4, 2024

While working on a separate change I ran into issues where chrome was refusing to fetch a report_result and this fixed the issue.

It seems that the angle brackets in the backtrace after my PR were the issue:

Before:

exception:fetch is not a function / TypeError: fetch is not a function           
    at readAsync (https://b2607f8….proxy.googlers.com/a.out.js:284:12)             
    at getBinaryPromise (https://b2607f8….proxy.googlers.com/a.out.js:774:12)   
    at instantiateArrayBuffer (https://b2607f8….proxy.googlers.com/a.out.js:786:10)
    at instantiateAsync (https://b2607f8….proxy.googlers.com/a.out.js:832:10)   
    at createWasm (https://b2607f8….proxy.googlers.com/a.out.js:909:3)             
    at https://b2607f8….proxy.googlers.com/a.out.js:5310:19         

After:

exception:fetch is not a function / TypeError: fetch is not a function              
    at readAsync (https://b2607f8….proxy.googlers.com/a.out.js:294:12)             
    at getBinaryPromise (https://b2607f8….proxy.googlers.com/a.out.js:818:12)   
    at https://b2607f8….proxy.googlers.com/a.out.js:831:5                          
    at new Promise (<anonymous>)                                                    
    at instantiateArrayBuffer (https://b2607f8….proxy.googlers.com/a.out.js:830:10)
    at instantiateAsync (https://b2607f8….proxy.googlers.com/a.out.js:881:10)   
    at createWasm (https://b2607f8….proxy.googlers.com/a.out.js:958:3)             
    at https://b2607f8….proxy.googlers.com/a.out.js:5368:19  

@sbc100 sbc100 requested a review from brendandahl December 4, 2024 21:56
While working on a separate change I ran into issues where chrome
was refusing to fetch a report_result and this fixed the issue.
@sbc100 sbc100 changed the title Use encodeURI consistently in browser_reporting. NFC Use encodeURIComponent in browser_reporting. NFC Dec 4, 2024
@sbc100 sbc100 merged commit 161573c into emscripten-core:main Dec 4, 2024
10 of 13 checks passed
@sbc100 sbc100 deleted the encodeURI branch December 4, 2024 22:20
hedwigz pushed a commit to hedwigz/emscripten that referenced this pull request Dec 18, 2024
While working on a separate change I ran into issues where chrome was
refusing to fetch a report_result and this fixed the issue.

It seems that the angle brackets in the backtrace after my PR were the
issue:

Before:
```
exception:fetch is not a function / TypeError: fetch is not a function           
    at readAsync (https://b2607f8….proxy.googlers.com/a.out.js:284:12)             
    at getBinaryPromise (https://b2607f8….proxy.googlers.com/a.out.js:774:12)   
    at instantiateArrayBuffer (https://b2607f8….proxy.googlers.com/a.out.js:786:10)
    at instantiateAsync (https://b2607f8….proxy.googlers.com/a.out.js:832:10)   
    at createWasm (https://b2607f8….proxy.googlers.com/a.out.js:909:3)             
    at https://b2607f8….proxy.googlers.com/a.out.js:5310:19         
```               
After:

```                                                                                                                                                  
exception:fetch is not a function / TypeError: fetch is not a function              
    at readAsync (https://b2607f8….proxy.googlers.com/a.out.js:294:12)             
    at getBinaryPromise (https://b2607f8….proxy.googlers.com/a.out.js:818:12)   
    at https://b2607f8….proxy.googlers.com/a.out.js:831:5                          
    at new Promise (<anonymous>)                                                    
    at instantiateArrayBuffer (https://b2607f8….proxy.googlers.com/a.out.js:830:10)
    at instantiateAsync (https://b2607f8….proxy.googlers.com/a.out.js:881:10)   
    at createWasm (https://b2607f8….proxy.googlers.com/a.out.js:958:3)             
    at https://b2607f8….proxy.googlers.com/a.out.js:5368:19  
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants