hi everyone, i am facing this error for a very sim...
# ask-community
a
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
Do you have an example of your Flow?
Going off the error message, is your Prefect Cloud token correct & available?
k
Hey @ash, this looks like your API token is not configured right. Are you using the Prefect Client?
a
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")
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 .
I am neither using prefect cloud nor prefect client, just trying to run flow within container , as suggested in the video

https://www.youtube.com/watch?v=kH3hPVwFfiA

k
Do you still have this problem?
You might just need to call
prefect backend server
a
let me try this