Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

airframe-http (js): Cross origin http://localhost forbidden error during testing #2905

Open
xerial opened this issue Apr 28, 2023 · 1 comment
Milestone

Comments

@xerial
Copy link
Member

xerial commented Apr 28, 2023

Error: Cross origin http://localhost forbidden
    at dispatchError (/Users/leo/work/git/airframe/node_modules/jsdom/lib/jsdom/living/xhr/xhr-utils.js:63:19)
    at Object.validCORSHeaders (/Users/leo/work/git/airframe/node_modules/jsdom/lib/jsdom/living/xhr/xhr-utils.js:75:5)
    at receiveResponse (/Users/leo/work/git/airframe/node_modules/jsdom/lib/jsdom/living/xhr/XMLHttpRequest-impl.js:794:19)
    at Request.<anonymous> (/Users/leo/work/git/airframe/node_modules/jsdom/lib/jsdom/living/xhr/XMLHttpRequest-impl.js:658:43)
    at Request.emit (node:events:513:28)
    at Request._processResponse (/Users/leo/work/git/airframe/node_modules/jsdom/lib/jsdom/living/helpers/http-request.js:228:12)
    at ClientRequest.<anonymous> (/Users/leo/work/git/airframe/node_modules/jsdom/lib/jsdom/living/helpers/http-request.js:101:12)
    at Object.onceWrapper (node:events:628:26)
    at ClientRequest.emit (node:events:513:28)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (node:_http_client:701:27) {
  type: 'XMLHttpRequest'
}
@xerial
Copy link
Member Author

xerial commented Apr 28, 2023

It looks like the http connection is forgetting about making requests from the Node jsdom environment while running sbt tests.

Using #2897 may solve the issue. Slow response from httpbin is also related, so I removed tests using httpbin #2906

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

No branches or pull requests

1 participant