[GH-ISSUE #3338] [bug]: Cannot access 'o' before initialization #1112

Closed
opened 2026-03-16 18:37:43 +03:00 by kerem · 15 comments
Owner

Originally created by @radrianhp on GitHub (Sep 11, 2023).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3338

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

When I try to access demo project. I want to access URL, but the result not show and showing some error in console.

Steps to reproduce

  1. Access to Demo .
  2. Click button test in https://echo.hoppscotch.io/
  3. display not showing the result
    how to solve this error ?
    image

Environment

Production

Version

Cloud

Originally created by @radrianhp on GitHub (Sep 11, 2023). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3338 ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current behavior When I try to access demo project. I want to access URL, but the result not show and showing some error in console. ### Steps to reproduce 1. Access to Demo . 2. Click button test in https://echo.hoppscotch.io/ 3. display not showing the result how to solve this error ? ![image](https://github.com/hoppscotch/hoppscotch/assets/15336755/e335ab73-e845-4a57-af0c-23fdea06fa4b) ### Environment Production ### Version Cloud
kerem 2026-03-16 18:37:43 +03:00
Author
Owner

@sebzz2002 commented on GitHub (Sep 11, 2023):

I have found the same issue on
os - ubuntu 20.04
browser - firefox

I am not able to send or recive respone

<!-- gh-comment-id:1713564923 --> @sebzz2002 commented on GitHub (Sep 11, 2023): I have found the same issue on os - ubuntu 20.04 browser - firefox I am not able to send or recive respone
Author
Owner

@lili21 commented on GitHub (Sep 11, 2023):

same issue here

<!-- gh-comment-id:1713714619 --> @lili21 commented on GitHub (Sep 11, 2023): same issue here
Author
Owner

@pupca commented on GitHub (Sep 11, 2023):

i have the same issue

<!-- gh-comment-id:1713851440 --> @pupca commented on GitHub (Sep 11, 2023): i have the same issue
Author
Owner

@anubhavhazarika commented on GitHub (Sep 11, 2023):

Same issue as well. Self-host, intercepter via browser extension: Chrome

<!-- gh-comment-id:1714755068 --> @anubhavhazarika commented on GitHub (Sep 11, 2023): Same issue as well. Self-host, intercepter via browser extension: Chrome
Author
Owner

@shahwan42 commented on GitHub (Sep 12, 2023):

Same!
Self-host, with/out the extension. Chrome.

Uncaught ReferenceError: Cannot access 'o' before initialization
image

Update: Same on Safari after login. Works without login.

<!-- gh-comment-id:1715404145 --> @shahwan42 commented on GitHub (Sep 12, 2023): Same! Self-host, with/out the extension. Chrome. Uncaught ReferenceError: Cannot access 'o' before initialization ![image](https://github.com/hoppscotch/hoppscotch/assets/6496157/2336c6ab-6a31-470f-bffd-763accb4c24c) Update: Same on Safari after login. Works without login.
Author
Owner

@giosueDelgado commented on GitHub (Sep 12, 2023):

Same! Self-host, with/out the extension. Chrome.

Uncaught ReferenceError: Cannot access 'o' before initialization image

Update: Same on Safari after login. Works without login.

Agree with you also for me!

<!-- gh-comment-id:1716305318 --> @giosueDelgado commented on GitHub (Sep 12, 2023): > Same! Self-host, with/out the extension. Chrome. > > Uncaught ReferenceError: Cannot access 'o' before initialization ![image](https://user-images.githubusercontent.com/6496157/267292109-2336c6ab-6a31-470f-bffd-763accb4c24c.png) > > Update: Same on Safari after login. Works without login. Agree with you also for me!
Author
Owner

@AndrewBastin commented on GitHub (Sep 12, 2023):

So, from my triages this seems to be a bug with the extension handling code updates. We will get this fixed in an upcoming point release.

But, this error seems to only happen if the app origin is not registered into the extension (which will be the case for Self Hosted). See https://docs.hoppscotch.io/documentation/features/interceptor#browser-extension and follow the steps there to add your self-hosted instance's origin into the extension.

You will know the extension is registered with the app, when you see "Browser Extension: vX.XX" instead of "Browser Extension: Not Reported"

@giosueDelgado @shahwan42 @anubhavhazarika @lili21 @sebzz2002 @radrianhp please verify if so and if the issue still persists, please let me know.

<!-- gh-comment-id:1716363627 --> @AndrewBastin commented on GitHub (Sep 12, 2023): So, from my triages this seems to be a bug with the extension handling code updates. We will get this fixed in an upcoming point release. But, this error seems to only happen if the app origin is not registered into the extension (which will be the case for Self Hosted). See https://docs.hoppscotch.io/documentation/features/interceptor#browser-extension and follow the steps there to add your self-hosted instance's origin into the extension. You will know the extension is registered with the app, when you see "Browser Extension: vX.XX" instead of "Browser Extension: Not Reported" @giosueDelgado @shahwan42 @anubhavhazarika @lili21 @sebzz2002 @radrianhp please verify if so and if the issue still persists, please let me know.
Author
Owner

@shahwan42 commented on GitHub (Sep 13, 2023):

@AndrewBastin Thanks. Yes, it worked once I added the hosting domain to the origins list in the extension.

<!-- gh-comment-id:1716747220 --> @shahwan42 commented on GitHub (Sep 13, 2023): @AndrewBastin Thanks. Yes, it worked once I added the hosting domain to the origins list in the extension.
Author
Owner

@sebzz2002 commented on GitHub (Sep 13, 2023):

@AndrewBastin I am not using a self-hosted version of hoppscotch but the one available freely. I am facing this issue. I also checked the browser extensions and it already has the origin.
Thank you

<!-- gh-comment-id:1717065695 --> @sebzz2002 commented on GitHub (Sep 13, 2023): @AndrewBastin I am not using a self-hosted version of hoppscotch but the one available freely. I am facing this issue. I also checked the browser extensions and it already has the origin. Thank you
Author
Owner

@giosueDelgado commented on GitHub (Sep 13, 2023):

I'm using the self-hosted behind a Nginx configuration and I have already the issue, I just added the localhost in the extension when I made some tests on the first days.
Thanks for the support, I'm trying to use also for some clients and I think this is a blocking point.

<!-- gh-comment-id:1718270961 --> @giosueDelgado commented on GitHub (Sep 13, 2023): I'm using the self-hosted behind a Nginx configuration and I have already the issue, I just added the localhost in the extension when I made some tests on the first days. Thanks for the support, I'm trying to use also for some clients and I think this is a blocking point.
Author
Owner

@mjhcorporate commented on GitHub (Sep 15, 2023):

I just tried hoppscotch for the first time, using https://hoppscotch.io/, and ran into this bug. I'm on MacOS 13.5.1 using Edge 116.0.1938.76.

The timing is really unfortunate -- Postman is sunsetting scratchpad today, so I imagine lots of users will be evaluating hoppscotch today!

<!-- gh-comment-id:1720835387 --> @mjhcorporate commented on GitHub (Sep 15, 2023): I just tried hoppscotch for the first time, using https://hoppscotch.io/, and ran into this bug. I'm on MacOS 13.5.1 using Edge 116.0.1938.76. The timing is really unfortunate -- Postman is sunsetting scratchpad _today_, so I imagine lots of users will be evaluating hoppscotch today!
Author
Owner

@j4k0xb commented on GitHub (Oct 12, 2023):

image

It works again by turning this off (I don't have the extension installed)

<!-- gh-comment-id:1758878669 --> @j4k0xb commented on GitHub (Oct 12, 2023): ![image](https://github.com/hoppscotch/hoppscotch/assets/55899582/e3f8c96a-e512-4fe1-b406-a9349972b15a) It works again by turning this off (I don't have the extension installed)
Author
Owner

@IeuanWalker commented on GitHub (Oct 25, 2023):

same issue here when trying to use the browser extension to test a local API.

For some reason it doesn't detect the extension -
image

<!-- gh-comment-id:1778979596 --> @IeuanWalker commented on GitHub (Oct 25, 2023): same issue here when trying to use the browser extension to test a local API. For some reason it doesn't detect the extension - ![image](https://github.com/hoppscotch/hoppscotch/assets/6544051/ef388aff-3112-425b-beda-17db218e9341)
Author
Owner

@beeant0512 commented on GitHub (Nov 1, 2023):

image

  1. click the extension button
  2. click add button
<!-- gh-comment-id:1788421615 --> @beeant0512 commented on GitHub (Nov 1, 2023): ![image](https://github.com/hoppscotch/hoppscotch/assets/6050235/88ec96c3-158c-41fc-bb81-b83c3e9a9ed8) 1. click the extension button 2. click add button
Author
Owner

@giosueDelgado commented on GitHub (Nov 1, 2023):

I install the tool on one of my client, we will give you feedback in the next weeks if it works or not
Thanks!

<!-- gh-comment-id:1788755162 --> @giosueDelgado commented on GitHub (Nov 1, 2023): I install the tool on one of my client, we will give you feedback in the next weeks if it works or not Thanks!
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/hoppscotch#1112
No description provided.