Skip to content

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

@lakshmi-236

Description

@lakshmi-236

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions