deta / cloud-docs

old docs. visit space docs instead:
https://github.com/deta/space-docs
Creative Commons Attribution 4.0 International
178 stars 67 forks source link

"Bad Gateway" error #209

Closed dlink1999 closed 2 years ago

dlink1999 commented 2 years ago

Hi, ther:

I am pretty new in fastai and deta.

I follow the tutorial code, and deploy micro successfully.

"from fastapi import FastAPI, File, UploadFile from fastapi.responses import HTMLResponse, StreamingResponse from deta import Deta

app = FastAPI() deta = Deta() # configure your Deta project
drive = deta.Drive("photos") # access to your drive"

But it doesn't work, the Visor shows the following message. What do I miss?

"Traceback (most recent call last): File "/opt/python/detalib/debugger.py", line 142, in wrap result = func(event, context) File "/var/task/_entry.py", line 12, in handler import main # noqa File "/var/task/main.py", line 7, in drive = deta.Drive("photos") # access to your drive AttributeError: 'Deta' object has no attribute 'Drive'"

abdelhai commented 2 years ago

hi, ask questions here: https://github.com/orgs/deta/discussions

dlink1999 commented 2 years ago

hi, ask questions here: https://github.com/orgs/deta/discussions

Thanks