jupyter-naas / naas

Low-code Python library to safely use notebooks in production: schedule workflows, generate assets, trigger webhooks, send notifications, build pipelines, manage secrets (Cloud-only)
https://app.naas.ai/
GNU Affero General Public License v3.0
282 stars 25 forks source link

Naas run - Error "❌ Cannot get your file None" #86

Closed jravenel closed 3 years ago

jravenel commented 3 years ago

When use the naas.run to test a notebook in prod but it returned an error message instead of outputs.

image

https://public.naas.ai/ZmxvcmVudC0yRXJhdmVuZWwtNDBjYXNoc3RvcnktMkVjb20=/asset/2fe80da9e44cf1bf34e641ad534f4238616af4c76a533500c6b2ef2ebdbc

https://naas.canny.io/incident-report/p/naas-run-error-cannot-get-your-file-none

jravenel commented 3 years ago

@tparente-ui @FlorentLvr as discussed, let's document what has been done during the bug fixing session last friday.

ThomasParenteau commented 3 years ago

With Quentin we tried to reproduce the error locally, from there new errors appeared

unknown (2)

As shown on the screenshots, after launching nass.run a Not_found.txt file is created and indicates an error like this: « File not found at path /home/ftp/.naas/home/ftp/naas/output__Untitled.ipynb »

When you run the naas run again after that, another error occurs, the program does not overwrite the other file from the previous error and reports a "file already exist".

unknown (3)

The naas.run is the call of a webhook, after adding it in the task we execute it with a get request then we try it in the code, if it fits in the exception the output is done and removes the task, which is not the case.

Despite an error in the request, a 200 response is displayed. The output is therefore impossible to generate.

jravenel commented 3 years ago

@Dr0p42 @FlorentLvr as discussed I removed @tparente-ui from this task : too deep.

jravenel commented 3 years ago

Seems fixed by the recent updates. I cannot reproduce the bug.

Screenshot 2021-08-13 at 12 11 22