[GH-ISSUE #3467] [bug]: Can't send request: Uncaught ReferenceError: can't access lexical declaration 'o' before initialization #1171

Open
opened 2026-03-16 18:58:41 +03:00 by kerem · 8 comments
Owner

Originally created by @shynekomaid on GitHub (Oct 23, 2023).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3467

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

When I try sending any request I get

Sending request <<domain>>/api/proxy_get_pulses_id.php [instrument.js:111:32](https://hoppscotch.io/node_modules/.pnpm/@sentry+utils@7.64.0/node_modules/@sentry/utils/esm/instrument.js)
Uncaught ReferenceError: can't access lexical declaration 'o' before initialization
    complete stream.ts:160
    RxJS 11
    A stream.ts:155
    U Request.vue:357
    3 Request.vue:651
    bc runtime-core.esm-bundler.js:158
    Vr runtime-core.esm-bundler.js:166
    t runtime-dom.esm-bundler.js:279
    n helpers.js:90
    qoA trycatch.js:215
    miA instrument.js:539
    ga runtime-dom.esm-bundler.js:233
    WAe runtime-dom.esm-bundler.js:247
    tte runtime-dom.esm-bundler.js:310
    y runtime-core.esm-bundler.js:5209
    p runtime-core.esm-bundler.js:5156
    E runtime-core.esm-bundler.js:5028
    Qe runtime-core.esm-bundler.js:5709
    run reactivity.esm-bundler.js:178
    update runtime-core.esm-bundler.js:5814
    X runtime-core.esm-bundler.js:5822
    S runtime-core.esm-bundler.js:5613
    D runtime-core.esm-bundler.js:5565
    E runtime-core.esm-bundler.js:5040
    Qe runtime-core.esm-bundler.js:5709
    run reactivity.esm-bundler.js:178
    update runtime-core.esm-bundler.js:5814
    X runtime-core.esm-bundler.js:5822
    S runtime-core.esm-bundler.js:5613
    D runtime-core.esm-bundler.js:5565
    E runtime-core.esm-bundler.js:5040
    k runtime-core.esm-bundler.js:5285
    y runtime-core.esm-bundler.js:5191
    p runtime-core.esm-bundler.js:5156
    E runtime-core.esm-bundler.js:5028
    k runtime-core.esm-bundler.js:5285
    y runtime-core.esm-bundler.js:5191
    p runtime-core.esm-bundler.js:5156
    E runtime-core.esm-bundler.js:5028

BUT! When i try send request when logouted - all work

Steps to reproduce

  1. Press + button to create new tab.
  2. Try to send GET https://echo.hoppscotch.io using send button.

Environment

Release

Version

Cloud

Originally created by @shynekomaid on GitHub (Oct 23, 2023). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3467 ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current behavior When I try sending any request I get ``` Sending request <<domain>>/api/proxy_get_pulses_id.php [instrument.js:111:32](https://hoppscotch.io/node_modules/.pnpm/@sentry+utils@7.64.0/node_modules/@sentry/utils/esm/instrument.js) Uncaught ReferenceError: can't access lexical declaration 'o' before initialization complete stream.ts:160 RxJS 11 A stream.ts:155 U Request.vue:357 3 Request.vue:651 bc runtime-core.esm-bundler.js:158 Vr runtime-core.esm-bundler.js:166 t runtime-dom.esm-bundler.js:279 n helpers.js:90 qoA trycatch.js:215 miA instrument.js:539 ga runtime-dom.esm-bundler.js:233 WAe runtime-dom.esm-bundler.js:247 tte runtime-dom.esm-bundler.js:310 y runtime-core.esm-bundler.js:5209 p runtime-core.esm-bundler.js:5156 E runtime-core.esm-bundler.js:5028 Qe runtime-core.esm-bundler.js:5709 run reactivity.esm-bundler.js:178 update runtime-core.esm-bundler.js:5814 X runtime-core.esm-bundler.js:5822 S runtime-core.esm-bundler.js:5613 D runtime-core.esm-bundler.js:5565 E runtime-core.esm-bundler.js:5040 Qe runtime-core.esm-bundler.js:5709 run reactivity.esm-bundler.js:178 update runtime-core.esm-bundler.js:5814 X runtime-core.esm-bundler.js:5822 S runtime-core.esm-bundler.js:5613 D runtime-core.esm-bundler.js:5565 E runtime-core.esm-bundler.js:5040 k runtime-core.esm-bundler.js:5285 y runtime-core.esm-bundler.js:5191 p runtime-core.esm-bundler.js:5156 E runtime-core.esm-bundler.js:5028 k runtime-core.esm-bundler.js:5285 y runtime-core.esm-bundler.js:5191 p runtime-core.esm-bundler.js:5156 E runtime-core.esm-bundler.js:5028 ``` BUT! When i try send request when logouted - all work ### Steps to reproduce 1. Press + button to create new tab. 2. Try to send GET https://echo.hoppscotch.io using send button. ### Environment Release ### Version Cloud
Author
Owner

@Francesko90 commented on GitHub (Oct 26, 2023):

Same problem in onpremise version

<!-- gh-comment-id:1781254137 --> @Francesko90 commented on GitHub (Oct 26, 2023): Same problem in onpremise version
Author
Owner

@Francesko90 commented on GitHub (Oct 26, 2023):

I solved using proxy interceptor instead of browser extension

image

<!-- gh-comment-id:1781373062 --> @Francesko90 commented on GitHub (Oct 26, 2023): I solved using proxy interceptor instead of browser extension ![image](https://github.com/hoppscotch/hoppscotch/assets/6740590/3aa5cbe1-7298-490c-8d0f-0243a8607ee1)
Author
Owner

@amishsthapit commented on GitHub (Oct 29, 2023):

I faced the same issue. Had to revert to previous version due to it.

<!-- gh-comment-id:1784034709 --> @amishsthapit commented on GitHub (Oct 29, 2023): I faced the same issue. Had to revert to previous version due to it.
Author
Owner

@shynekomaid commented on GitHub (Oct 29, 2023):

I solved using proxy interceptor instead of browser extension

image

I can't use the proxy. I am testing the API on the same computer where I am.

<!-- gh-comment-id:1784059992 --> @shynekomaid commented on GitHub (Oct 29, 2023): > I solved using proxy interceptor instead of browser extension > > ![image](https://user-images.githubusercontent.com/6740590/278397325-3aa5cbe1-7298-490c-8d0f-0243a8607ee1.png) I can't use the proxy. I am testing the API on the same computer where I am.
Author
Owner

@Francesko90 commented on GitHub (Oct 29, 2023):

Yes me too, I deployed proxyscotch as proxy locally

<!-- gh-comment-id:1784148254 --> @Francesko90 commented on GitHub (Oct 29, 2023): Yes me too, I deployed [proxyscotch](https://github.com/hoppscotch/proxyscotch) as proxy locally
Author
Owner

@shynekomaid commented on GitHub (Nov 6, 2023):

Yes me too, I deployed proxyscotch as proxy locally

Thank you for your quick response. Your temporary solution is quite effective.

<!-- gh-comment-id:1795013407 --> @shynekomaid commented on GitHub (Nov 6, 2023): > Yes me too, I deployed [proxyscotch](https://github.com/hoppscotch/proxyscotch) as proxy locally Thank you for your quick response. Your temporary solution is quite effective.
Author
Owner

@amishratnasthapit commented on GitHub (Nov 7, 2023):

I also have same issue. I reverted back to old version.

<!-- gh-comment-id:1799057290 --> @amishratnasthapit commented on GitHub (Nov 7, 2023): I also have same issue. I reverted back to old version.
Author
Owner

@nivedin commented on GitHub (Nov 7, 2023):

@amishratnasthapit if you have selected Browser Extension as interceptor adding the URL in the hoppscotch extension fixes this issue.

image

<!-- gh-comment-id:1799116900 --> @nivedin commented on GitHub (Nov 7, 2023): @amishratnasthapit if you have selected Browser Extension as interceptor adding the URL in the hoppscotch extension fixes this issue. ![image](https://github.com/hoppscotch/hoppscotch/assets/53208152/e856659b-c9c9-4458-b47f-dea64c0a7987)
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#1171
No description provided.