Errors using Typescript SDK #5497
Unanswered
davidsalvador-01
asked this question in
Questions
Replies: 1 comment 2 replies
-
you need to replace u/user/name with an actual resource |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm trying to use the typescript client for windmill but I'm encountering several errors. I always found errors when I try to execute a function from the SDK. For example, in this code, which is the example in the web https://www.windmill.dev/docs/advanced/clients/ts_client, the obtained error is Error: Resource not found at u/user/name or not visible to you: undefined
import * as wmill from 'windmill-client'
await wmill.getResource('u/user/name')
I also try to put wmill.setClient(TOKEN, URL), in case login is needed, before the getResource function but the error is the same.
If instead of getResource i put the getResumeUrls function ( await wmill.getResumeUrls() ) the error is: TypeError: fetch failed
If someone could teach me how to use this SDK, I would appreciate it.
Beta Was this translation helpful? Give feedback.
All reactions