mafintosh / mafintosh/docker-remote-api
Strange issue with network connect
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 56
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
I'm trying to connect to a network using .post('/networks...')
Before I've created a network and create/started a container.
I have both ID on network and container varialbe
` docky.post('/networks/'+network+'/connect',{json:{'Container':container}},function(err,toto){
`
I allways get:
`SyntaxError: Unexpected end of JSON input
at JSON.parse ()
`
Just cant understand why ..
Can you help ? :)
Thx!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the .post('/networks/'+network+'/connect') request and how its response is parsed. Reproduce the request with the supplied network and container IDs, then determine why an empty or unexpected response reaches JSON.parse; done means the connection request completes without the reported parsing error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, javascript, node.js
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100