NickReeseN
Windmill16mo ago
24 replies
NickReese

Unauthorized Tasks?

Hey all, facing an issue where I can't seem to get any task working when using the workflows as code setup. It just keeps returning unauthorized. The tool works without the tasks.


=======


job=0191fb5d-fe4f-0926-43e4-be56644dc4b6 tag=bun worker=wk-reports-3306192d8b44-hZzbM hostname=3306192d8b44

skipping install, using cached buntar based on lockfile hash: K_HkMUcdUDKK88MuEFqRQSyII2agWOINYHUOoXlP-vU=

--- BUN CODE EXECUTION ---

Started task crawlPageWithFetch as job Unauthorized
Error crawling https://example.com: 1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 | exports.ApiError = void 0;
4 | class ApiError extends Error {
5 | constructor(request, response, message) {
6 | super(message);
^
ApiError: Bad Request
url: "http://127.0.0.1:44029/api/w/no_workspace/jobs_u/completed/get_result_maybe/Unauthorized"
at new ApiError (/tmp/windmill/wk-reports-3306192d8b44-hZzbM/0191fb5d-fe4f-0926-43e4-be56644dc4b6/node_modules/windmill-client/dist/core/ApiError.js:6:9)
at catchErrorCodes (/tmp/windmill/wk-reports-3306192d8b44-hZzbM/0191fb5d-fe4f-0926-43e4-be56644dc4b6/node_modules/windmill-client/dist/core/request.js:224:15)
at /tmp/windmill/wk-reports-3306192d8b44-hZzbM/0191fb5d-fe4f-0926-43e4-be56644dc4b6/node_modules/windmill-client/dist/core/request.js:269:29
at fulfilled (/tmp/windmill/wk-reports-3306192d8b44-hZzbM/0191fb5d-fe4f-0926-43e4-be56644dc4b6/node_modules/windmill-client/dist/core/request.js:5:58)
image.png
Was this page helpful?