Apify and Crawlee Official Forum

Updated 4 months ago

Actor standby with required input

I tried to make a standard actor into a standby actor. The required input is TOKEN while the rest is optional.

However, when i call the API with postman, it keeps asking to provide TOKEN as it's required. I've tried to provide it through query parameter or payload (seems not working since it's a HTTP GET)
the error message is as following:
Plain Text
{
  "error": {
    "type": "invalid-request",
    "message": "Unexpected error: Failed to start new Actor runs! Underlying error: 'Input is not valid: Field input.TOKEN is required'."
  }
}


However, if i modify the input schema and change TOKEN into an optional input, it works perfectly.

Does standby mode doesn't support required input or do I miss something?
1
p
A
A
4 comments
Did you set the header values rightly?
just advanced to level 1! Thanks for your contributions! πŸŽ‰
it's my custom parameter in query string, doesn't go to header
hey ...this is a bug on the platform. Currently the workaround is not to use required parameters, or to create a task (with the required parameter set) or add default value to the required parameter in INPUT_SCHEMA
Add a reply
Sign up and join the conversation on Discord