Exiled-Exchange-2: fix electron net::ERR_BLOCKED_BY_CLIENT

Launching overlay from exe instead of though npm causes all network requests to be blocked somewhere??

  • Have tried running same state from API tester, bruno
    • dev headers & prod headers work
  • Logging all related info
  • Dev and prod body is the same
  • net.request from electron is called
  • listener goes to the ‘error’

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 45 (31 by maintainers)

Most upvoted comments

* Looks like latest release of  `Awakened-PoE-Trade`(original repo) is still from Aug 2 so there is the possibility that the main branch is just broken rn?

LETS GO, latest commit on upstream is just broken!!!

I’m NOT completely insane YAY! (edit: yet at least)

(now i have to more or less restart but at least it should work?)

No, same error, which implies it’s an environment issue. But there shouldn’t be any environment issues through github actions. So that is really confusing.

I’m going to fork it again and make no changes and run actions to see if that works

Yeah, i just thought of that I am currently cloning and building from scratch awakened

And, for that reason there is proxy.ts, i don’t know how it worked before, but looks like you need to replace net.request in this part of code

const proxyReq = net.request({
        url: 'https://' + req.url.slice('/proxy/'.length),
        method: req.method,
        headers: {
          ...req.headers,
          'user-agent': app.userAgentFallback
        },
        useSessionCookies: true
      })

to something in node side, or just disable CORS completely in electron https://github.com/electron/electron/issues/23664#issuecomment-631674094 (but it’s bad decision and probably doesn’t work now)