Could not connect to the IPFS API
- OS: Windows
- Version of IPFS Desktop [e.g. 0.21.0]
I keep getting the following error:

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
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?
I think there are two different "problems" happening here:
-
Key 'FN_LAUNCH_WEB_UI_FOO' is not a valid analyticsKey, which is, indeed, what you mentioned. Addressed in #2224. -
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.
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
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.