flipperdevices / qFlipper

qFlipper — desktop application for updating Flipper Zero firmware via PC
https://update.flipperzero.one
GNU General Public License v3.0
1.14k stars 152 forks source link

Cannot connect to update server #140

Closed schemil053 closed 1 year ago

schemil053 commented 1 year ago

image You can see the error on the Screenshot.

schemil053 commented 1 year ago

[UPD] Failed to parse update information: ChannelInfo: Expected an array of versions [UPD] Failed to parse update information: ChannelInfo: Expected an array of versions is in the Log

CrookedBIOS commented 1 year ago

Same here on Fedora 36 Logfile:

279 [APP] qFlipper version 1.2.1 commit 3ec0fd9d 2022-10-03T17:15:41
279 [APP] OS info: Fedora Linux 36 (KDE Plasma) 36 6.0.10-200.fc36.x86_64 Qt 5.15.2
296 [REG] Detected new device: VID_0x483:PID_0x5740
378 [DBG] Trying serial port flip_xxxxxx at /dev/ttyACM0
378 [DBG] Using  serial port flip_xxxxxx at /dev/ttyACM0
378 [RPC] Starting RPC session...
426 [UPD] Fetched update information from https://update.flipperzero.one/qFlipper/directory.json
444 [UPD] Fetched update information from https://update.flipperzero.one/firmware/directory.json
444 [UPD] Failed to parse update information: ChannelInfo: Expected an array of versions
473 [RPC] RPC session started successfully.
473 [RPC] (1) System Device Info START
581 [RPC] (1) System Device Info SUCCESS
581 [RPC] (2) Storage Info @/ext START
633 [RPC] (2) Storage Info @/ext SUCCESS
633 [RPC] (3) Storage Stat @/ext/Manifest START
691 [RPC] (3) Storage Stat @/ext/Manifest SUCCESS
692 [RPC] (4) System Get DateTime START
743 [DBG] Flipper time skew is -1257 milliseconds
743 [RPC] (4) System Get DateTime SUCCESS
743 [RPC] (5) System Set DateTime START
795 [RPC] (5) System Set DateTime SUCCESS
795 [RPC] Stopping RPC session...
797 [RPC] Attempting to unload protobuf plugin...
797 [RPC] Unloaded protobuf plugin.
797 [RPC] RPC session stopped successfully.
797 [REG] Registering the device
797 [DEV] Version: 0.66.1 commit: 55b46324 radio: 1.13.3
797 [BKD] Current device changed to "xxxxxx"
898 [RPC] Starting RPC session...
990 [RPC] RPC session started successfully.
990 [RPC] (1) Gui Start ScreenStream START
1045 [RPC] (1) Gui Start ScreenStream SUCCESS
2248 [UPD] Fetched update information from https://update.flipperzero.one/firmware/directory.json
2248 [UPD] Failed to parse update information: ChannelInfo: Expected an array of versions

I can visit https://update.flipperzero.one/firmware/directory.json in my browser. Raw data if I visit the URL

{"channels":[{"id":"development","title":"Development Channel","description":"Latest builds, not yet tested by Flipper QA, be careful","versions":null},{"id":"release-candidate","title":"Release Candidate Channel","description":"This is going to be released soon, undergoing QA tests now","versions":[{"version":"0.73.1-rc","changelog":"## TL;DR\r\n\r\n* Dolphin: new L2 animation\r\n* Weather Station: new sensors support\r\n* Sub-GHz: better error reporting in RPC mode\r\n* Nfc: bug fixes and improvements\r\n* USB: bug fixes and improvements\r\n* System: various improvements and bug fixes\r\n\r\n## What's Changed\r\n\r\n* VCP session close fix by @nminaylov in https://github.com/flipperdevices/flipperzero-firmware/pull/2108\r\n* Fix crash in iButton notifications routine by @DrZlo13 in https://github.com/flipperdevices/flipperzero-firmware/pull/2074\r\n* U2F HID descriptor fix by @nminaylov in https://github.com/flipperdevices/flipperzero-firmware/pull/2073\r\n* USB HID: fix key name by @nminaylov in https://github.com/flipperdevices/flipperzero-firmware/pull/2065\r\n* SubGhz: unit_test modification of text files to one frequency and modulation by @Skorpionm in https://github.com/flipperdevices/flipperzero-firmware/pull/2066\r\n* NFC: fix NTAG203 info scene by @gornekich in https://github.com/flipperdevices/flipperzero-firmware/pull/2078\r\n* [FL-3012] Dolphin: new animation L2_Wake_up_128x64 by @skotopes in https://github.com/flipperdevices/flipperzero-firmware/pull/2099\r\n* IR TV Universal: Toshiba TV by @Kami-no in https://github.com/flipperdevices/flipperzero-firmware/pull/2084\r\n* FuriHal: add i2c unit tests by @skotopes in https://github.com/flipperdevices/flipperzero-firmware/pull/2089\r\n* [FL-3008], [FL-2734], [FL-2766], [FL-2898] NFC bug fixes by @gornekich in https://github.com/flipperdevices/flipperzero-firmware/pull/2098\r\n* UART echo: fix race conditions causing null pointer dereference by @0xchocolate in https://github.com/flipperdevices/flipperzero-firmware/pull/2092\r\n* WS: Oregon2 - add new sensor support by @xMasterX in https://github.com/flipperdevices/flipperzero-firmware/pull/2088\r\n* [FL-3001] File browser base folder by @nminaylov in https://github.com/flipperdevices/flipperzero-firmware/pull/2091\r\n* [FL-3017], [FL-3018] Change NFC emulation screens by @gornekich in https://github.com/flipperdevices/flipperzero-firmware/pull/2102\r\n* [FL-3002] SubGhz: add RPC error by @Skorpionm in https://github.com/flipperdevices/flipperzero-firmware/pull/2097\r\n* FuriHal, Power, UnitTests: battery charging voltage limit API (#2063) by @digitalcircuit in https://github.com/flipperdevices/flipperzero-firmware/pull/2063\r\n* [FL-3003] Fix logical error in storage script by @gsurkov in https://github.com/flipperdevices/flipperzero-firmware/pull/2105\r\n\r\n## New Contributors\r\n\r\n* @Kami-no made their first contribution in https://github.com/flipperdevices/flipperzero-firmware/pull/2084\r\n* @0xchocolate made their first contribution in https://github.com/flipperdevices/flipperzero-firmware/pull/2092\r\n\r\n\r\n## Ongoing\r\n\r\n* Application catalog\r\n* FuriHal\r\n* Toolchain\r\n* NFC refactoring and write support\r\n\r\n**Full Changelog**: https://github.com/flipperdevices/flipperzero-firmware/compare/0.72.1-rc...0.73.1-rc","timestamp":1670614330,"files":[{"url":"https://update.flipperzero.one/builds/firmware/0.73.1-rc/flipper-z-any-core2_firmware-0.73.1-rc.tgz","target":"any","type":"core2_firmware_tgz","sha256":"3c51876f3304885e20fe364a434d222f117fc30bbf4feeaf56ca0a4ba160d60b"},{"url":"https://update.flipperzero.one/builds/firmware/0.73.1-rc/flipper-z-any-resources-0.73.1-rc.tgz","target":"any","type":"resources_tgz","sha256":"5adbc214af36412ce5d14b1b4a488e84b1d46431d3834a6d5450f351f58c074e"},{"url":"https://update.flipperzero.one/builds/firmware/0.73.1-rc/flipper-z-any-scripts-0.73.1-rc.tgz","target":"any","type":"scripts_tgz","sha256":"e3f4ec4e6b67a19c4c2cbe56f8a5b7572fb5c81ea08866ef9364dff3a4d735dc"},{"url":"https://update.flipperzero.one/builds/firmware/0.73.1-rc/flipper-z-f7-firmware-0.73.1-rc.elf","target":"f7","type":"firmware_elf","sha256":"14c036984967c1c4f6cbac4bb95a791908f49e29af7438e303193c74e4768d94"},{"url":"https://update.flipperzero.one/builds/firmware/0.73.1-rc/flipper-z-f7-full-0.73.1-rc.bin","target":"f7","type":"full_bin","sha256":"a0984a5a5008ed20c5d02e72fc7ef87881323dbb64c183309c6e5c787027260d"},{"url":"https://update.flipperzero.one/builds/firmware/0.73.1-rc/flipper-z-f7-full-0.73.1-rc.dfu","target":"f7","type":"full_dfu","sha256":"752d8b3638e61f3570388e9b47d82b5b77cbe52607005f9569bd3a02cc8bae82"},{"url":"https://update.flipperzero.one/builds/firmware/0.73.1-rc/flipper-z-f7-full-0.73.1-rc.json","target":"f7","type":"full_json","sha256":"dd303bd6d2ec64e4a35ffc48df6b300122547f705699a115b2f3e7d31b2ab1bf"},{"url":"https://update.flipperzero.one/builds/firmware/0.73.1-rc/flipper-z-f7-lib-0.73.1-rc.zip","target":"f7","type":"lib_zip","sha256":"043d376aa43b38244ed2f3428abcf8d4fa1543193ee642b739dd223e08c967ec"},{"url":"https://update.flipperzero.one/builds/firmware/0.73.1-rc/flipper-z-f7-sdk-0.73.1-rc.zip","target":"f7","type":"sdk_zip","sha256":"b9df928bb5c7529594beaf43159d9a71f65a389e092749e3433680da6037046e"},{"url":"https://update.flipperzero.one/builds/firmware/0.73.1-rc/flipper-z-f7-update-0.73.1-rc.tgz","target":"f7","type":"update_tgz","sha256":"f201042d5f2edcc05a7dd056d8a1a8f05f6d2f756636d7c3a2f0247743fd7265"},{"url":"https://update.flipperzero.one/builds/firmware/0.73.1-rc/flipper-z-f7-updater-0.73.1-rc.bin","target":"f7","type":"updater_bin","sha256":"2d6c0bd8484ac4f9ad7e257ceed9d4423c31836940a7e87f1fd714fc1381fdaa"},{"url":"https://update.flipperzero.one/builds/firmware/0.73.1-rc/flipper-z-f7-updater-0.73.1-rc.dfu","target":"f7","type":"updater_dfu","sha256":"3d0133085e872dc2f0e4893ebd766439a2a4ed23fe0512fa58348e9597cc4bc9"},{"url":"https://update.flipperzero.one/builds/firmware/0.73.1-rc/flipper-z-f7-updater-0.73.1-rc.elf","target":"f7","type":"updater_elf","sha256":"953904c4c11f3445adf7f56163cfb13441923956377ea2dd3ca9d15f32909b55"},{"url":"https://update.flipperzero.one/builds/firmware/0.73.1-rc/flipper-z-f7-updater-0.73.1-rc.json","target":"f7","type":"updater_json","sha256":"dd303bd6d2ec64e4a35ffc48df6b300122547f705699a115b2f3e7d31b2ab1bf"}]}]},{"id":"release","title":"Stable Release Channel","description":"Stable releases, tested by Flipper QA","versions":[{"version":"0.73.1","changelog":"## TL;DR\r\n\r\n* Dolphin: new L2 animation\r\n* Weather Station: new sensors support\r\n* Sub-GHz: better error reporting in RPC mode\r\n* Nfc: bug fixes and improvements\r\n* USB: bug fixes and improvements\r\n* System: various improvements and bug fixes\r\n\r\n## What's Changed\r\n\r\n* VCP session close fix by @nminaylov in https://github.com/flipperdevices/flipperzero-firmware/pull/2108\r\n* Fix crash in iButton notifications routine by @DrZlo13 in https://github.com/flipperdevices/flipperzero-firmware/pull/2074\r\n* U2F HID descriptor fix by @nminaylov in https://github.com/flipperdevices/flipperzero-firmware/pull/2073\r\n* USB HID: fix key name by @nminaylov in https://github.com/flipperdevices/flipperzero-firmware/pull/2065\r\n* SubGhz: unit_test modification of text files to one frequency and modulation by @Skorpionm in https://github.com/flipperdevices/flipperzero-firmware/pull/2066\r\n* NFC: fix NTAG203 info scene by @gornekich in https://github.com/flipperdevices/flipperzero-firmware/pull/2078\r\n* [FL-3012] Dolphin: new animation L2_Wake_up_128x64 by @skotopes in https://github.com/flipperdevices/flipperzero-firmware/pull/2099\r\n* IR TV Universal: Toshiba TV by @Kami-no in https://github.com/flipperdevices/flipperzero-firmware/pull/2084\r\n* FuriHal: add i2c unit tests by @skotopes in https://github.com/flipperdevices/flipperzero-firmware/pull/2089\r\n* [FL-3008], [FL-2734], [FL-2766], [FL-2898] NFC bug fixes by @gornekich in https://github.com/flipperdevices/flipperzero-firmware/pull/2098\r\n* UART echo: fix race conditions causing null pointer dereference by @0xchocolate in https://github.com/flipperdevices/flipperzero-firmware/pull/2092\r\n* WS: Oregon2 - add new sensor support by @xMasterX in https://github.com/flipperdevices/flipperzero-firmware/pull/2088\r\n* [FL-3001] File browser base folder by @nminaylov in https://github.com/flipperdevices/flipperzero-firmware/pull/2091\r\n* [FL-3017], [FL-3018] Change NFC emulation screens by @gornekich in https://github.com/flipperdevices/flipperzero-firmware/pull/2102\r\n* [FL-3002] SubGhz: add RPC error by @Skorpionm in https://github.com/flipperdevices/flipperzero-firmware/pull/2097\r\n* FuriHal, Power, UnitTests: battery charging voltage limit API (#2063) by @digitalcircuit in https://github.com/flipperdevices/flipperzero-firmware/pull/2063\r\n* [FL-3003] Fix logical error in storage script by @gsurkov in https://github.com/flipperdevices/flipperzero-firmware/pull/2105\r\n\r\n## New Contributors\r\n\r\n* @Kami-no made their first contribution in https://github.com/flipperdevices/flipperzero-firmware/pull/2084\r\n* @0xchocolate made their first contribution in https://github.com/flipperdevices/flipperzero-firmware/pull/2092\r\n\r\n\r\n## Ongoing\r\n\r\n* Application catalog\r\n* FuriHal\r\n* Toolchain\r\n* NFC refactoring and write support\r\n\r\n**Full Changelog**: https://github.com/flipperdevices/flipperzero-firmware/compare/0.72.1...0.73.1","timestamp":1670615021,"files":[{"url":"https://update.flipperzero.one/builds/firmware/0.73.1/flipper-z-any-core2_firmware-0.73.1.tgz","target":"any","type":"core2_firmware_tgz","sha256":"75e1bfb4a9e848ed60947cf3b98d2508788cb38096ebf35e7f01c2bd46c6ec3d"},{"url":"https://update.flipperzero.one/builds/firmware/0.73.1/flipper-z-any-resources-0.73.1.tgz","target":"any","type":"resources_tgz","sha256":"41b8aa35070137b598a5b9a86536facc56f7534fe81ab0691d889d255e2bccde"},{"url":"https://update.flipperzero.one/builds/firmware/0.73.1/flipper-z-any-scripts-0.73.1.tgz","target":"any","type":"scripts_tgz","sha256":"c78a0710e8fd68d04b5c929c8567bd8eb73059dc915f0b2a9e7bbe8ed923258a"},{"url":"https://update.flipperzero.one/builds/firmware/0.73.1/flipper-z-f7-firmware-0.73.1.elf","target":"f7","type":"firmware_elf","sha256":"156eb624fe961f297b3940df642a5fe7816dd0f7844fd9c07b6dc4dc0285cf93"},{"url":"https://update.flipperzero.one/builds/firmware/0.73.1/flipper-z-f7-full-0.73.1.bin","target":"f7","type":"full_bin","sha256":"ebb95dcb1832d7f0e95d40255601ed9190332d10ac09b04d90e95d63723ed034"},{"url":"https://update.flipperzero.one/builds/firmware/0.73.1/flipper-z-f7-full-0.73.1.dfu","target":"f7","type":"full_dfu","sha256":"cc91e6259a3932b877b73ba70f921ba1cd8ba0098f7969a6430675d2adda74d4"},{"url":"https://update.flipperzero.one/builds/firmware/0.73.1/flipper-z-f7-full-0.73.1.json","target":"f7","type":"full_json","sha256":"54c5e14b3a5a536a8ae72f4b2404cfd49213a8e2fb326dd6674e49a37e3e69b8"},{"url":"https://update.flipperzero.one/builds/firmware/0.73.1/flipper-z-f7-lib-0.73.1.zip","target":"f7","type":"lib_zip","sha256":"09dced711e3bd04a98e11ba4e6a085c2ef9284703ed6580e11b96b361a575768"},{"url":"https://update.flipperzero.one/builds/firmware/0.73.1/flipper-z-f7-sdk-0.73.1.zip","target":"f7","type":"sdk_zip","sha256":"870f8349539439ec7ba3aa29fa8a1d45399061da80c9a7af53950bd5f766a50d"},{"url":"https://update.flipperzero.one/builds/firmware/0.73.1/flipper-z-f7-update-0.73.1.tgz","target":"f7","type":"update_tgz","sha256":"c0e22b7674181ed87669e875189ace0c45da8539846cda5b523951e0ecf21ec8"},{"url":"https://update.flipperzero.one/builds/firmware/0.73.1/flipper-z-f7-updater-0.73.1.bin","target":"f7","type":"updater_bin","sha256":"67162e4e0ff91f4ba525e46e23d393e1da918de3f83b8509173a3b1ea80db2a8"},{"url":"https://update.flipperzero.one/builds/firmware/0.73.1/flipper-z-f7-updater-0.73.1.dfu","target":"f7","type":"updater_dfu","sha256":"f7407afd07d47d3c8dbfdbfbc4f942ed6117e857f4472c49d3d48d9b5b5bf2d1"},{"url":"https://update.flipperzero.one/builds/firmware/0.73.1/flipper-z-f7-updater-0.73.1.elf","target":"f7","type":"updater_elf","sha256":"475c8b69a7b3dfb06a75dadfc057330309d304810c14c96e5665cb55b08df8bb"},{"url":"https://update.flipperzero.one/builds/firmware/0.73.1/flipper-z-f7-updater-0.73.1.json","target":"f7","type":"updater_json","sha256":"54c5e14b3a5a536a8ae72f4b2404cfd49213a8e2fb326dd6674e49a37e3e69b8"}]}]}]}
CrookedBIOS commented 1 year ago

Works now. Can update.

Seems like the issue was that "versions": null was defined in the development channel. URL with JSON now contains a valid version in development channel, and I am able to update the Flipper Zero firmware using qFlipper

fritolays commented 1 year ago

Once again a null in the dev channel and cant update....

fritolays commented 1 year ago

Hmm, must be while the system is uploading a new build or during a build process. I dont know, but yes same as above, works now and dev channel reads normally.

gsurkov commented 1 year ago

It is a problem with the web backend, not with qFlipper. It is being worked on.