hi everyone, i am facing this error for a very simple prefect flow, what could the error be
Copy code
prefect.utilities.exceptions.ClientError: Malformed response received from Cloud - please ensure that you have an API token properly configured
c
ciaran
06/02/2021, 1:15 PM
Do you have an example of your Flow?
ciaran
06/02/2021, 1:17 PM
Going off the error message, is your Prefect Cloud token correct & available?
k
Kevin Kho
06/02/2021, 1:26 PM
Hey @ash, this looks like your API token is not configured right. Are you using the Prefect Client?
a
ash
06/04/2021, 7:15 AM
this is my flow
Copy code
from prefect import Flow, Task, task, Parameter, unmapped
from prefect.storage import Docker
from prefect.triggers import always_run
import prefect
from python.manipulation import extract
@task
def get_data():
return [1, 2, 3, 4, 5]
@task
def print_data(data):
print(data)
with Flow("shiny new flow", storage=Docker(base_image="spookyimage-shiny", local_image=True)) as f:
data = get_data()
print_data(data)
## run flow and print logs
f.register(project_name="monster-project")
ash
06/04/2021, 7:16 AM
this is my Docker file
Copy code
FROM python:3.8
RUN sh -c "$(wget -O- <https://github.com/deluan/zsh-in-docker/releases/download/v1.1.1/zsh-in-docker.sh>)"
RUN apt-get install sqlite3
RUN sqlite3 scary_model_storage.db "create table models(id integer primary key autoincrement, name varchar(255) not null, model blob not null);"
COPY requirements.txt /home/requirements.txt
RUN pip install -r /home/requirements.txt
COPY ./python /home/python
COPY setup.py /home/setup.py
RUN cd /home && pip install .
ash
06/04/2021, 7:17 AM
I am neither using prefect cloud nor prefect client, just trying to run flow within container , as suggested in the video
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.