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.

Parse Error when calling enrollment endpoint

See original GitHub issue

Running Fabric v1.0.0-alpha1 locally. “fabric-ca” container looks to be running and it says everything is successful when doing “network_setup.sh up”

Please advise. Thanks.

info: [FabricCAClientImpl.js]: Successfully constructed Fabric CA service client: endpoint - %j protocol=http, hostname=localhost, port=7054
debug: id admin secret adminpw
debug: msp_id Org1MSP
info: [crypto_ecdsa_aes]: This class requires a CryptoKeyStore to save keys, using the store: {"opts":{"path":"/Users/cso/.hfc-key-store"}}
error: Error: Calling enrollment endpoint failed with error [Error: Parse Error]
    at ClientRequest.<anonymous> (/Users/cso/projects/marbles.v3/node_modules/fabric-ca-client/lib/FabricCAClientImpl.js:568:12)
    at emitOne (events.js:96:13)
    at ClientRequest.emit (events.js:188:7)
    at Socket.socketOnData (_http_client.js:368:9)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:176:18)
    at Socket.Readable.push (_stream_readable.js:134:10)
    at TCP.onread (net.js:548:20)
error: [fcw] Failed to get enrollment marbles-e2ecli_default-mychannel-fabric-peer-1a Error: Failed to obtain an enrolled user
    at ca_client.enroll.then.then.then.catch (/Users/cso/projects/marbles.v3/utils/fc_wrangler/enrollment.js:167:12)
    at process._tickCallback (internal/process/next_tick.js:103:7)
error: [fcw] could not format error
error: could not enroll...

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
saan099commented, Jun 12, 2017

hey @ravengit were you able to solve the 404 error?? Im stuck at the same exact spot.

1reaction
ravengitcommented, May 30, 2017

I think this issue is related to using http instead of https. So I’m closing this ticket.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Parse Error when calling enrollment endpoint #102 - GitHub
Running Fabric v1.0.0-alpha1 locally. "fabric-ca" container looks to be running and it says everything is successful when doing ...
Read more >
Calling enrollment endpoint failed with error [Error: connect ...
I am trying to run the Hyperledger fabric Tuna app and getting the below error when running the regiseterAdmin.js
Read more >
Parse Error: What It Is and How to Fix It - Lifewire
A parse error is an error message you sometimes get on Android devices when an app fails to install. The message itself is...
Read more >
Hyperledger Fabric Failed to enroll admin Error ... - Edureka
When running the registerAdmin.js i get this error: Store path:/home/chaindev/.hfc-key-store Error: Calling enrollment endpoint failed with ...
Read more >
Solved: Having JSON Parse error having body
Solved: Hello, I have an http trigger that is configured with object. Which is strange id the the body contains body "body" :...
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