Hi there, I'm trying to create a flow and project...
# ask-community
d
Hi there, I'm trying to create a flow and project via VS Code to the Prefect Cloud but I'm stuck. I'm following this 2 tutorials: 1-https://docs.prefect.io/orchestration/tutorial/overview.html#create-an-api-key 2-https://docs.prefect.io/orchestration/tutorial/first.html#creating-a-project But I'm getting this error when trying to create a project via VS Code: -ClientError: Malformed response received from Cloud - please ensure that you have an API token properly configured. Error creating project And this one when trying to register a flow running the hello_flow.py: - ClientError: Malformed response received from Cloud - please ensure that you have an API token properly configured. I can see that the error is because of the API Keys and Service Account Keys but in your tutorial you don't say how am I suposed to put this keys in the hello_flow.py script.
m
hi, are yoe add cloud token to config.toml?
d
yes, I already puted the cloud token and the cloud.agent token
m
can you show config.toml?
👍 1
d
m
@Diogo Martins try use double quotes "
d
I already saw what was the error, thank you! Over the last few days this page has changed to another step
Copy code
prefect auth login --token <YOUR-KEY>
And the command you suggested doesn't work, I needed to use the one I sent
you = tutorial
m
i believe docs update because of 0.15 release
d
Probably
thank you anyway!
🖖 1
One more thing, how do I set the order in a flow
in this case I want to execute in the following order: 1-group() 2-project() 3-commits() 4-deployments() 5-merge_requests()
m
few ways - https://docs.prefect.io/core/concepts/flows.html#functional-api - result of one task is the input parameter for next or https://docs.prefect.io/core/concepts/flows.html#imperative-api - by set_dependencies, set_upstream