mafintosh / mafintosh/docker-remote-api

Strange issue with network connect

Open
#7 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

invalid
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.