Kamil
Kamil
Explore posts from servers
CDCloudflare Developers
Created by Kamil on 3/8/2025 in #workers-help
How to update Worker secrets via REST API (or TS SDK)?
I found such undocumented endpoints in wrangler's source code: - To create and update Worker's secret: https://api.cloudflare.com/client/v4/accounts/<ACCOUNT_ID>/workers/scripts/<WORKER_NAME>/secrets - To delete Worker's secret: https://api.cloudflare.com/client/v4/accounts/<ACCOUNT_ID>/workers/scripts/<WORKER_NAME>/secrets/<SECRET_KEY> Unfortunately they are not working. The update one fails with error saying that the key is already in use - of course it is:
{
code: 10053,
message: "Binding name 'INSTAGRAM_ACCESS_TOKEN' already in use. Please use a different name and try again."
}
{
code: 10053,
message: "Binding name 'INSTAGRAM_ACCESS_TOKEN' already in use. Please use a different name and try again."
}
So I tried to delete it first. And the delete one doesn't work as well saying the binding not found when it's already there:
{
code: 10056,
message: "Binding 'INSTAGRAM_ACCESS_TOKEN' not found. Please use a different name and try again."
}
{
code: 10056,
message: "Binding 'INSTAGRAM_ACCESS_TOKEN' not found. Please use a different name and try again."
}
The API access token I'm using has full read/write previlages in the scope of the worker's zone. I'm completely out of ideas. Please help.
3 replies
CDCloudflare Developers
Created by Kamil on 2/11/2025 in #workers-help
Is it possible to be logged in on two Cloudflare account at the same time?
I use Cloudflare at work and for personal projects. Is it possible to easily switch between two accounts in wrangler - without re-login?
2 replies
CDCloudflare Developers
Created by Kamil on 2/3/2025 in #general-help
Paid workers plan issue
I have problems with accessing Paid workers plan. I subscribed the plan, my (Revolut) card got charged but I can't access paid features. I have it listed in my billing. I opened an issue in support center. There is also general issue open without any updates since October '24
2 replies
TtRPC
Created by Kamil on 1/27/2025 in #❓-help
What is the substitution for queryKey in useQuery?
In vanilla @tanstack/react-query, queryKey works as dependencies referrence so the query refetches automatically as it changes. Just like useEffect's dependency array. It's not present in tRPC flavoured useQuery, looks like it is handled automatically. So what to do instead? How to attach such dependencies to query?
3 replies