WindmillWWindmill
Powered by
GomeyyG
Windmill•3y ago•
5 replies
Gomeyy

OAuth Access Token does not renew automatically

I have a resource that refuses to renew its access token automatically, I am fetching it within a script using
await wmill.getVariable('***')
await wmill.getVariable('***')
. The error I am getting in the script is as follows
ExecutionErr: ExitCode: 1, last log lines:
211 |         const workspace = getWorkspace();
212 |         try {
213 |             return yield index_1.VariableService.getVariableValue({ workspace, path });
214 |         }
215 |         catch (e) {
216 |             throw Error(`Variable not found at ${path} or not visible to you: ${e.body}`);
                      ^
error: Variable not found at f/halopsa/token or not visible to you: Bad request: invalid client
      at /tmp/windmill/cache/bun/windmill-client@1.224.1/dist/client.js:216:18
      at rejected (/tmp/windmill/cache/bun/windmill-client@1.224.1/dist/client.js:6:46)
ExecutionErr: ExitCode: 1, last log lines:
211 |         const workspace = getWorkspace();
212 |         try {
213 |             return yield index_1.VariableService.getVariableValue({ workspace, path });
214 |         }
215 |         catch (e) {
216 |             throw Error(`Variable not found at ${path} or not visible to you: ${e.body}`);
                      ^
error: Variable not found at f/halopsa/token or not visible to you: Bad request: invalid client
      at /tmp/windmill/cache/bun/windmill-client@1.224.1/dist/client.js:216:18
      at rejected (/tmp/windmill/cache/bun/windmill-client@1.224.1/dist/client.js:6:46)

This error goes away if I manually renew the access token using the dropdown, which renews with no issues. Am I doing something wrong? Any help would be greatly appreciated. Thank you
WindmillJoin
3,362Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?
Recent Announcements
henri-c

Weekly kenote to tell you about our latest updates https://discord.com/channels/930051556043276338/1278977038430240813 https://youtube.com/live/2dGd9TdT8xs?feature=share

henri-c · 4d ago

Pyra

### HTTP tracing (EE) Capture HTTP requests made by job scripts as observability spans Features: - View HTTP request traces (method, URL, status, timing) in the job details UI - Auto-instrumentation for Native TypeScript, MITM proxy for other languages - Integrates with external OpenTelemetry collectors changelog: https://www.windmill.dev/changelog/http-tracing docs: https://www.windmill.dev/docs/advanced/instance_settings#http-tracing Additionally jobs memory metrics are now fully OSS!

Pyra · 2w ago

henri-c

First keynote of the year here https://discord.com/channels/930051556043276338/1278977038430240813 🙂

henri-c · 4w ago

Similar Threads

Resource SMTP cannot renew access token
FrederonFFrederon / help
3y ago
A token with write access is not affiliated with a user.
DmiriiDDmirii / help
17mo ago
GitHub OAuth
exographicskipEexographicskip / help
17mo ago