Doodle3D / doodle3d-firmware

The API of the Doodle3D WiFi box. This can for example talk to print3d, save settings, update the firmware etc.
www.doodle3d.com
GNU General Public License v2.0
13 stars 9 forks source link

error searching version index (no such version) #40

Open peteruithoven opened 9 years ago

peteruithoven commented 9 years ago

Sometimes, we get the following error when trying to update through connect.doodle3d.com:

error searching version index (no such version)

wifibox.log:

01-01 00:03:24 (info)     =======rest api (api debugging)=======
01-01 00:03:24 (info)     received request of type POST for update/download
01-01 00:03:24 (info)     remote IP/port: 10.0.0.32/52761
01-01 00:03:24 (debug)     set update state: downloading ('2|')
01-01 00:03:24 (info)     received request of type GET for update/status
01-01 00:03:24 (info)     remote IP/port: 10.0.0.32/52762
01-01 00:03:24 (debug)     Downloading file 'http://doodle3d.com/updates/images/wifibox-image.index'
01-01 00:03:24 (debug)     Downloading file 'http://doodle3d.com/updates/images/wifibox-image.index'
01-01 00:03:25 (debug)     Downloading file 'http://doodle3d.com/updates/images/wifibox-image.index'
01-01 00:03:25 (debug)     Downloading file 'http://doodle3d.com/updates/images/wifibox-image.beta.index'
01-01 00:03:26 (debug)     Downloading file 'http://doodle3d.com/updates/images/wifibox-image.index'
01-01 00:03:26 (debug)     Downloading file 'http://doodle3d.com/updates/images/wifibox-image.index'
01-01 00:03:26 (debug)     set update state: download_failed ('3|error searching version index (no such version)')
01-01 00:03:26 (debug)     Response:fail (error searching version index (no such version))
peteruithoven commented 9 years ago

Downloading the index does however work, requesting update/status gives:

{
  "data": {
    "can_update": true,
    "current_release_date": "20141223",
    "current_version": "0.10.5",
    "newest_release_date": "20150617",
    "newest_version": "0.10.6",
    "state_code": 3,
    "state_text": "error searching version index (no such version)"
  },
  "status": "success"
}
peteruithoven commented 9 years ago

After going a page back on connect.doodle3d.com and pressing update it does find the version.

peteruithoven commented 9 years ago

I've tried reproducing this by sending POST requests to .../d3dapi/update/download but it never seems to fail.

Only once it couldn't download the index file:

07-01 13:56:10 (info)     received request of type POST for update/download
07-01 13:56:10 (info)     remote IP/port: 10.0.0.32/53697
07-01 13:56:10 (debug)     set update state: downloading ('2|')
07-01 13:56:10 (debug)     Downloading file 'http://doodle3d.com/updates/images/wifibox-image.index'
07-01 13:56:11 (info)     =======rest api (api debugging)=======
07-01 13:56:11 (info)     received request of type GET for info/status
07-01 13:56:11 (info)     remote IP/port: 10.0.0.102/53647
07-01 13:56:13 (debug)     error: could not obtain available versions (could not download image index file (1: Generic error))
07-01 13:56:13 (debug)     set update state: download_failed ('3|could not download image index file (1: Generic error)')
07-01 13:56:13 (debug)     Response:fail (could not download image index file (1: Generic error))
peteruithoven commented 8 years ago

Mentioned an issue from another repo in that commit, reopening this one.

companje commented 7 years ago

note: I had the same issue today when I was testing the new connect.doodle3d.com. I don't have more specific information..