Skip to content
New issue

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

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

Already on GitHub? # to your account

Error: write EPROTO when sending requests to a HTTPS adress #1

Closed
CEbbinghaus opened this issue Jul 1, 2021 · 1 comment
Closed

Comments

@CEbbinghaus
Copy link

When sending a request to an HTTPS address the application crashes with

Error: write EPROTO 140733873063808:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:332:
    at WriteWrap.onWriteComplete [as oncomplete] (internal/stream_base_commons.js:92:16) {
  errno: 'EPROTO',
  code: 'EPROTO',
  syscall: 'write'
}

config.json

{
    "interceptorPort": 6789,
    "target": { 
        "host": "https://xmousedev-admin-api.azurewebsites.net",
        "port": 80
    }
}
@CEbbinghaus
Copy link
Author

The HTTPS protocol uses the 443 port instead of 80. so simply changing the target port to 443 fixed it

nodejs/node#3692 (comment)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant