Git Product home page Git Product logo

sync-rpc's People

Contributors

forbeslindesay avatar natcl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

sync-rpc's Issues

Error: read ECONNRESET

So I get an error pointing me to this part of the code:

function httpGet(url){
  var response = request(
	'GET',
	url, (err, res, body) => {
		if(err)
		{
			return console.dir(err);
		}
	});
	return response.body;
}

The error says this:
C:\Users\CP\Desktop\BitBot\node_modules\sync-rpc\lib\index.js:130
throw new Error(
^

Error: nodeNC failed:

events.js:183
throw er; // Unhandled 'error' event
^

Error: read ECONNRESET
at TCP.onread (net.js:622:25)

at sendMessage (C:\Users\CP\Desktop\BitBot\node_modules\sync-rpc\lib\index.js:130:13)
at C:\Users\CP\Desktop\BitBot\node_modules\sync-rpc\lib\index.js:159:25
at request (C:\Users\CP\Desktop\BitBot\node_modules\sync-request\lib\index.js:28:15)
at httpGet (C:\Users\CP\Desktop\BitBot\test.js:229:27)
at GetPrice (C:\Users\CP\Desktop\BitBot\test.js:197:25)
at Request.get [as _callback] (C:\Users\CP\Desktop\BitBot\test.js:178:21)
at Request.self.callback (C:\Users\CP\Desktop\BitBot\node_modules\request\request.js:185:22)
at emitTwo (events.js:126:13)
at Request.emit (events.js:214:7)
at Request.<anonymous> (C:\Users\CP\Desktop\BitBot\node_modules\request\request.js:1161:10)

Allow setting custom executable path for sub-process

We are using sync-request in a VsCode extension (Electron executable), and there seems to be some issues with running multiple Electron processes at the same time. We would like the ability to set the executable running sync-rpc server, so that we can run this in node even when the process executable is Electron.

This is the error we are seeing:
find port exited with code 1 with no stderr or stdout.

Open handlers in Jest

I'm using citation-js which in turn uses sync-request which in turn uses sync-rpc. Simply importing the package causes my CI build to fail as Jest doesn't exit and throws the following warning:

Screen Shot 2019-09-05 at 1 50 28 PM

This happens when running jest 24.5.0 on node 10.14.1.

NodeJS 6.9.4: sync-rpc v1.3.6 causes pm2 to generate infinite orphaned child processes

FYI, I know you don't support Node 6.9.4 or anything before 8 (looking at your travis.yml) but wanted to document this anyway since we went on a bit of a goose chase this morning at work - upgrading from v1.3.4 to v1.3.6 broke our pm2 processes because pm2 started infinite workers that became orphaned even when we used pm2 stop all and pm2 delete all.

We confirmed that this was the issue by pinning our (previously unpinned) dependency to v1.3.4 of sync-rpc, and resolved by adding that to our package/package-lock.json. (We're also upgrading our versions of node and npm so this shouldn't be an issue moving forward, but I just wanted to note in case this helps anyone else who notices sudden failures.)

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on all branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because we are using your CI build statuses to figure out when to notify you about breaking changes.

Since we did not receive a CI status on the greenkeeper/initial branch, we assume that you still need to configure it.

If you have already set up a CI for this repository, you might need to check your configuration. Make sure it will run on all new branches. If you don’t want it to run on every branch, you can whitelist branches starting with greenkeeper/.

We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.

An error is thrown if no response after 2 minutes

Error: nodeNC failed:\n\nevents.js:167
throw er; // Unhandled 'error' event
Error: read ECONNRESET
at TCP.onStreamRead (internal/stream_base_commons.js:111:27)
Emitted 'error' event at:
at emitErrorNT (internal/streams/destroy.js:82:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
at process._tickCallback (internal/process/next_tick.js:63:19)
at sendMessage (D:\root\node_modules\sync-rpc\lib\index.js:130:13)
at D:\root\node_modules\sync-rpc\lib\index.js:159:25
at request (D:\root\node_modules\sync-request\lib\index.js:28:15)
at FuncLib.func_server (D:\root\funclib.js:529:26)
at FuncLib.export_wrap (D:\root\funclib.js:547:31)
at FuncLib.GetPowerPlanGuidByName (D:\root\funclib.js:484:58)
at Object.module.exports.template.Case.step [as step_func] (D:\root\case_scripts\test app\test case 01\main.js:16:39)
at Case.run (D:\root\template.js:183:35)
at Object. (d:\root\run_script.js:4:10)
at Module._compile (internal/modules/cjs/loader.js:685:14

Issues with the latest version 1.2.2

Getting the below error,

_node_modules/sync-rpc/lib/index.js:80
    throw new Error(
    ^

Error: Timed out waiting for sync-rpc server to start (it should respond with "pong" when sent "ping"):

[eval]:1
var c=require('net').connect(59542,'127.0.0.1',()=>{c.end("ping\r\n").pipe(process.stdout)});
                                                                     ^

TypeError: Cannot read property 'pipe' of undefined
    at Socket.require.connect ([eval]:1:70)
    at Socket.g (events.js:286:16)
    at emitNone (events.js:86:13)
    at Socket.emit (events.js:185:7)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1067:10)


    at waitForAlive (node_modules/sync-rpc/lib/index.js:80:11)
    at start (node_modules/sync-rpc/lib/index.js:40:3)
    at sendMessage (node_modules/sync-rpc/lib/index.js:109:17)
    at createClient (node_modules/sync-rpc/lib/index.js:149:27)
    at Object.<anonymous> (node_modules/sync-request/lib/index.js:16:14)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)_

add support for electron-node in vscode?

Hi, we are trying to use sync-rpc for an vscode extension, and have some issue with using sync-rpc in electron node in vscode. We have some workaround locally to add support for it to work with vscode. May I ask how can we create a PR for it and try to merge it, as we believe other people working with vscode may have similar issue. Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.