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

axios: https request produce error with SSL #30

Open
VladislavAkulich opened this issue Mar 27, 2019 · 13 comments
Open

axios: https request produce error with SSL #30

VladislavAkulich opened this issue Mar 27, 2019 · 13 comments

Comments

@VladislavAkulich
Copy link
Contributor

I've got the error when I executed tests, which used this client on Jenkins environment.

Error: write EPROTO 140597680499200:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:../../vendor/node/deps/openssl/openssl/ssl/s23_clnt.c:797:

at axios.then.catch (/home/jenkins/workspace/test_e2e/<project-name>/test/node_modules/reportportal-client/lib/rest.js:27:23)
at <anonymous>:null:null

It look like the following issues with axios package: axios/axios#1680

@DzmitryHumianiuk
Copy link
Member

@VladislavAkulich are you sure assigning it to me? )

@DzmitryHumianiuk DzmitryHumianiuk removed their assignment Mar 27, 2019
@avarabyeu avarabyeu pinned this issue Mar 27, 2019
@avarabyeu avarabyeu removed their assignment Mar 27, 2019
@avarabyeu
Copy link
Member

@BorisOsipov

@BorisOsipov
Copy link
Contributor

Have you tried to google smth before submiting issue?
https://stackoverflow.com/a/50781170

It works perfecly for EPAM production instance, my local setup and EPAM rp demo... So maybe issue in your server setup then?

@avarabyeu
Copy link
Member

@BorisOsipov @DzmitryHumianiuk @VladislavAkulich
axios/axios#658 (comment)

Guys, if mentioned in issue's commit is the case, moving to axios is a big mistake and the change must be reverted.
What do you think?

@BorisOsipov
Copy link
Contributor

  1. restler(previous http client) doesn't support work under proxy at all see Proxy setting danwrong/restler#176 So reverting won't help
  2. Issue closed with explanation "I think the problem is that the proxy you're configuring is an HTTP server, not HTTPS." So, configure you env correctly.
  3. I don't care. I've already made fork for my projects to avoid dependencies from this repo

@DzmitryHumianiuk
Copy link
Member

@VladislavAkulich resolved?

@navisayslisten
Copy link

navisayslisten commented May 29, 2019

Not resolved for me. I get this error when setting up an https url to Report Portal.

Error: Request failed with status code 404: {"timestamp":1559165140583,"status":404,"error":"Not Found","message":"No message available","path":"/api/v1/myproject/user"}
    at axios.then.catch (C:\dev\myproject\node_modules\reportportal-js-client\lib\rest.js:27:23)
    at <anonymous>
    at process._tickDomainCallback (internal/process/next_tick.js:228:7)

The funny thing is, Report Portal still gets the test results. The error makes me think it didn't work at all.

@BorisOsipov
Copy link
Contributor

BorisOsipov commented May 30, 2019

@navisayslisten your problem aren't related to https. You ran into issue that has been fixed by b64e919

@DzmitryHumianiuk
Copy link
Member

@BorisOsipov fix is not yet released, right?

@BorisOsipov
Copy link
Contributor

BorisOsipov commented May 31, 2019 via email

@Viacheslav-Romanov
Copy link

Viacheslav-Romanov commented Jul 18, 2019

Guys, please elevate the proxy parameter from the axios client to the reportportal client's configuration as it causes integration issues for those behind proxy servers.

@xadvfh
Copy link

xadvfh commented Nov 23, 2020

@BorisOsipov I'm seeing a similar issue. In my case, we have a certificate issued by our corporate CA.

@mudit94
Copy link

mudit94 commented Aug 1, 2023

I am unable to use certificate in report portal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants