Apify Issue

Describe the problem/error/question

Every since last night around 10PM, my apify node started giving me this error: Bad request - please check your parameters. At this time i was using the apify community node. Then, I switched to a https request and no matter where I put the cost value, I still get that error.

Maximum cost per run must be greater than zero

What is the error message (if any)?

Bad request - please check your parameters

Maximum cost per run must be greater than zero

Please share your workflow

Share the output returned by the last node

It won’t do anything since the error started.

Information on your n8n setup

  • n8n version: 2.1.4
  • Running n8n via n8n cloud,
  • Operating system: MacOS Tahoe

Hey there

When starting an actor make sure maxcost is A number > 0, Passed at the top level of the request body (not inside input)

Just like this

{
“maxCost”: 1,
“memory”: 1024,
“input”: {
“startUrls”: [{ “url”: “https://example.com” }]
}
}

1 Like

I tried it, it’s still erroring, did I maybe type it wrong?

Use this at the root level of the body @achamm

{
“maxTotalChargeUsd”: 10,
“memory”: 2048,
“input”: {
“startUrls”: [
{ “url”: “https://www.youtube.com/@AiAutomationExperimentation” }
],
“maxResults”: 100,
“maxResultsShorts”: 100,
“includeShorts”: true,
“extended”: true
}
}

1 Like

so like this?

Yes

maxTotalChargeUsd is placed properly, so the request setup itself is right.

If you still see the error after that, it’s not the structure anymore (it would be an Apify side issue like account limits or billing), but the image/config you showed is correct.

2 Likes

I’ll have to look at my billing, maybe that is why it’s erroring.

I’m going to mark your solution as correct since you helped and your probally right its an apify issue.

1 Like

Thanks :blush: @achamm

I figured out the real issue, it was because of my billing!

1 Like

That’s good to hear @achamm

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.