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

Not able to communicate with mock server from app when mock server is in secure comunication(https) #81

Open
lakshmi-236 opened this issue Oct 30, 2019 · 2 comments

Comments

@lakshmi-236
Copy link

lakshmi-236 commented Oct 30, 2019

HI,
ngapimock is hosted/running in express server over https, by refering the below link im able to up mockserver in https.
https://timonweb.com/posts/running-expressjs-server-over-https/
But after that not able to connect to mockserver while runnig protractor tests . getting error
Ignoring uncaught error Error: socket hang up

App is able to communicate to the real backend with https and by default it communicates through https. but only with mock, its throwing error

below is the error log:
a7a509ef-ad2a-4da1-840f-c8c5e8ff669f
selectScenario: user/me : a7a509ef-ad2a-4da1-840f-c8c5e8ff669f
selectScenario: employee/{code}/ : a7a509ef-ad2a-4da1-840f-c8c5e8ff669f
[09:43:47] W/launcher - Ignoring uncaught error Error: socket hang up
[09:43:47] W/launcher - Ignoring uncaught error Error: socket hang up
[09:43:50] W/launcher - Ignoring uncaught error UnableToSetCookieError: unable to set cookie
(Session info: chrome=77.0.3865.120)
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
System info: host: 'TVMLT0558', ip: '172.21.64.1', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_221'
Driver info: driver.version: unknown
[09:43:50] W/launcher - Ignoring uncaught error Error: socket hang up
[09:43:54] I/launcher - 0 instance(s) of WebDriver still running
[09:43:54] I/launcher - chrome #1 failed 1 test(s)
[09:43:54] I/launcher - overall: 1 failed spec(s)
[09:43:54] E/launcher - Process exited with error code 1
[09:43:54] gulp-angular-protractor - We will stop the Protractor engine
[09:43:57] gulp-angular-protractor - Webdriver standalone server will be closed
Java terminated SUCCESS: The process "java.exe" with PID 124396 has been terminated.

@mdasberg
Copy link
Owner

mdasberg commented Nov 1, 2019

@lakshmi-236 can you provide a dummy setup so I can have a look?

@mdasberg
Copy link
Owner

mdasberg commented Mar 3, 2020

@lakshmi-236 ng-apimock has a new version, which is modular.
I have just released a new version of the base-client (1.0.15) that supports https.

Please let me know if you run into any problems

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

2 participants