ipfs-desktop icon indicating copy to clipboard operation
ipfs-desktop copied to clipboard

Could not connect to the IPFS API

Open Heynsss opened this issue 3 years ago • 1 comments

  • OS: Windows
  • Version of IPFS Desktop [e.g. 0.21.0]

I keep getting the following error:

Error IPFS

Can you please help me?

ATTACH LOGS

2022-06-30T08:32:53.668Z error: [ipfsd] start daemon undefined 2022-06-30T08:58:55.298Z error: Key 'FN_LAUNCH_WEB_UI_FOO' is not a valid analyticsKey 2022-06-30T08:58:55.919Z error: Key 'FN_LAUNCH_WEB_UI_FOO' is not a valid analyticsKey 2022-06-30T09:06:44.257Z error: [ipfsd] start daemon undefined 2022-06-30T09:06:52.110Z error: [ipfsd] start daemon undefined 2022-06-30T09:08:16.225Z error: Key 'FN_LAUNCH_WEB_UI_FOO' is not a valid analyticsKey 2022-06-30T09:13:58.913Z error: [ipfsd] start daemon undefined 2022-06-30T09:17:44.433Z error: Key 'FN_LAUNCH_WEB_UI_FOO' is not a valid analyticsKey 2022-06-30T09:55:18.488Z error: [ipfsd] start daemon undefined 2022-06-30T10:31:48.411Z error: [ipfsd] start daemon undefined 2022-06-30T10:33:28.548Z error: [ipfsd] start daemon undefined 2022-06-30T10:34:31.155Z error: [ipfsd] start daemon undefined

Thanks

Heynsss avatar Jun 30 '22 10:06 Heynsss

I think this is a bug:

https://github.com/ipfs/ipfs-desktop/blob/e16b1e7374b0d614c4bd2416b7b75cd58f45d85e/src/webui/index.js#L143

@hacdias should be an easy fix, mind taking a look?

lidel avatar Aug 08 '22 17:08 lidel

I think there are two different "problems" happening here:

  1. Key 'FN_LAUNCH_WEB_UI_FOO' is not a valid analyticsKey, which is, indeed, what you mentioned. Addressed in #2224.
  2. start daemon undefined, which seems that starting the daemon is indeed failing, but there is some problem with the error. Still taking a look at this. Addressed in #2225.

The real error is hidden by the 'undefined' part. After #2225 is merged and after the next release, @Heynsss should upgrade and try with the new version and see if the error persists. If it does, we can further debug the error.

hacdias avatar Aug 11 '22 07:08 hacdias

Both of the PRs have been merged, so this should be resolved. Please let us know if you're still experiencing an issue by re-opening this issue. @Heynsss

SgtPooki avatar Aug 15 '22 17:08 SgtPooki

this error still persists. I updated to the latest version of the desktop app, temporarily for a few hours it worked and now it's showing the error.

rahulreddy27 avatar Feb 05 '23 03:02 rahulreddy27