input-output-hk / daedalus

The open source cryptocurrency wallet for ada, built to grow with the community
https://daedaluswallet.io/
Apache License 2.0
1.24k stars 295 forks source link

Uncaught SyntaxError: Unexpected end of JSON input "/api/settings/time/difference" returns 404 #603

Closed h4ck3rm1k3 closed 5 years ago

h4ck3rm1k3 commented 6 years ago

I am getting this error on reload of the client, otherwise seems to work. image

index.html#/:1 Uncaught SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at IncomingMessage.eval (eval at <anonymous> (bundle.js:4112), <anonymous>:108:31)
    at emitNone (events.js:91)
    at IncomingMessage.emit (events.js:188)
    at endReadableNT (_stream_readable.js:975)
    at _combinedTickCallback (internal/process/next_tick.js:80)
    at process._tickCallback (internal/process/next_tick.js:104)
(anonymous) @   request.js?c6b6:75
emitNone    @   events.js:91
emit    @   events.js:188
endReadableNT   @   _stream_readable.js:975
_combinedTickCallback   @   internal/process/next_tick.js:80
_tickCallback   @   internal/process/next_tick.js:104



Posted on Utopian.io - Rewarding Open Source Contributors

zmeel commented 6 years ago

Yes, strange indeed. It currently is syncing blocks. I will wait till 100% and then see what happens. If is stucks at 100% again I can open a new issue. Maybe they will respond...

zmeel commented 6 years ago

The API is not present. I didn't look very well when I tested it 2 hours ago. I'm going to open a new issue..

zmeel commented 6 years ago

Turn out that your fork is not yet released :-)

Current version of cardano-sl branch master does not have the getLocalTimeDifference API yet and therefore one should build Daedalus revision a267ae05daaf3947fe679eac56d1257a8775b27b. Those two match. I have build both now and my wallet is restoring again...

I guess you can close this issue.

h4ck3rm1k3 commented 6 years ago

My issue is that the code does not check if the servers supports the api call and does not deal with errors properly. I am going to keep it open.

On Thu, Dec 28, 2017 at 12:38 PM, Erik van Hannen notifications@github.com wrote:

Turn out that your fork is not yet released :-)

Current version of cardano-sl branch master does not have the getLocalTimeDifference API yet and therefore one should build Daedalus revision a267ae05daaf3947fe679eac56d1257a8775b27b. Those two match. I have build both now and my wallet is restoring again...

I guess you can close this issue.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/input-output-hk/daedalus/issues/603#issuecomment-354325934, or mute the thread https://github.com/notifications/unsubscribe-auth/AACIV20ZmtGT_VZuK_3DPgsG-8x3GDopks5tE9IegaJpZM4RE5DM .

-- James Michael DuPont

vaibhavpratapsingh commented 6 years ago

Unexpected end of JSON input while parsing near '..."temp":"^0.8.3","thro'

nikolaglumac commented 5 years ago

This should no longer be a problem - please check the latest Daedalus release.