That’s probably the issue then. Environment Variables aren’t populated on startup
That’s probably the issue then. Environment Variables aren’t populated on startup

When the schedule interval is more than 1 hour, a scheduled Worker may run for up to 15 minutes.. My job runs once per month.



text-to_Image (1) a few times i got the "upstream too busy", (2) is there any plan to add the resolution in the input request (3) what would be great value for num steps... i can try and guess but explanation would help #[event(fetch)]
async fn main(mut req: Request, _env: Env, _ctx: Context) -> Result<Response> {
if req.method() == Method::Post{
if let Ok(body) = req.text().await{
match serde_json::from_str::<TVSignal>(&body) {
Ok(tvs)=> {
match Fetch::Request(tvs.request()).send().await {
Ok(_) => Response::ok("Success"),
Err(_) => Response::error("Error to send request to OKX", 502),
}
},
Err(_) => Response::error("Can't deserialize json to pass value", 400),
}
}else {
Response::error("Need text body",400)
}
}else {
Response::error("There are apis, please request with POST",400)
}
}✘ [ERROR] Error while creating remote dev session: TypeError: fetch failed
at fetch
{
cause: Error: connect ETIMEDOUT 2606:4700:3031::ac43:cb34:443
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1495:16) {
errno: -60,
code: 'ETIMEDOUT',
syscall: 'connect',
address: '2606:4700:3031::ac43:cb34',
port: 443
}
}