CA
Crawlee & Apify•11mo ago
generous-apricot

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:
{
"error": {
"type": "invalid-request",
"message": "Unexpected error: Failed to start new Actor runs! Underlying error: 'Input is not valid: Field input.TOKEN is required'."
}
}
{
"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?
4 Replies
flat-fuchsia
flat-fuchsia•11mo ago
Did you set the header values rightly?
MEE6
MEE6•11mo ago
@pollon just advanced to level 1! Thanks for your contributions! 🎉
generous-apricot
generous-apricotOP•11mo ago
it's my custom parameter in query string, doesn't go to header
ondro_k
ondro_k•11mo ago
hey @Arnold...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

Did you find this page helpful?