question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Socket Hangup Error when refreshing the browser

See original GitHub issue

Environment check:

npm i macaca-cli -g && macaca doctor

  • app inspector version / 版本号: It cames empty when I write app-inspector -v

  • os version / 系统:

  • device information / 设备版本: deviceSerialNumber: Serial Number identifier: UDID deviceClass: iPhone deviceName: A Phone deviceIdentifier: UDID productVersion: 9.3.4 buildVersion: 13G35 deviceSoftwareVersion: 9.3.4 (13G35) deviceArchitecture: arm64 deviceTotalCapacity: 12805275648 deviceAvailableCapacity: 10458669056 deviceIsTransient: NO ignored: NO deviceIsBusy: NO deviceIsActivated: YES deviceActivationState: Activated isPasscodeLocked: NO deviceType: <DVTDeviceType:0x7f8665d91a60 Xcode.DeviceType.iPhone>

  • terminal log / 终端输出信息:

>> iOS device started: 8cf88820750279d6cd49b48d5a079a9315598778
>> inspector start at: http://192.168.10.138:5678
  <-- GET /
>> ios.js:67:10 [master] pid:8410 Dump iOS XML success, save to /usr/local/lib/node_modules/app-inspector/.temp/ios.json
  --> GET / 200
  <-- GET /
>> ios.js:67:10 [master] pid:8410 Dump iOS XML success, save to /usr/local/lib/node_modules/app-inspector/.temp/ios.json
  --> GET / 200
  <-- GET /
>> helper.js:94:16 [master] pid:8410 xctest client proxy error with: Error: socket hang up

  Error: socket hang up
      at createHangUpError (_http_client.js:302:15)
      at Socket.socketOnEnd (_http_client.js:394:23)
      at emitNone (events.js:91:20)
      at Socket.emit (events.js:188:7)
      at endReadableNT (_stream_readable.js:975:12)
      at _combinedTickCallback (internal/process/next_tick.js:80:11)
      at process._tickCallback (internal/process/next_tick.js:104:9)

I want to open an application then use inspector. When I ran that command app-inspector -u udid, it gets only main screen page. When I open an app, then refresh the browser, I saw socket hang up error. When browser’s screen became Internal server error message only.

Any help, thanks !

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6

github_iconTop GitHub Comments

3reactions
kahyalarcommented, Jun 8, 2017

Okay, it’s returned normal. Just an internet issue with my ISP. Can be closed, thank you.

2reactions
kahyalarcommented, Jul 5, 2017

Correct me, if I’m wrong but i think your installation is not properly done. Because, favicon is macacajs’s file and if you get 404 on it; my opinion is run macaca doctor and fix any problem if exist. Than try again, if you get still errors, i think re-install can be best option.

Good luck

Read more comments on GitHub >

github_iconTop Results From Across the Web

NodeJS - What does "socket hang up" actually mean?
It means that socket does not send connection end event within the timeout period. If you are getting the request for cheerio via...
Read more >
NodeJS - What does socket hang up actually mean - Edureka
When a socket hang up is thrown, one of two things happens: When you're a customer, When you send a request to a...
Read more >
How to handle a socket hang up error in Node.js usually - Quora
Socket hang up error are usually errors when requests coming to your server are more than it can handle.
Read more >
502 Bad Gateway - Socket hang up | Apigee Edge
The error code [socket hang up][ECONNRESET] indicates that the target server has closed the connection with Edge Microgateway. This can be ...
Read more >
Socket Hang Up - Questions - n8n community
after awhile it will give the Socket Hung Up Error ... If you refresh the browser and then open “Workflow Executions” again you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found