想用 GitHub action 执行一个定时签到的任务,用 nodejs 写的,请求库用的 axios ,在本地跑没有问题,让 action 跑流水线总是 axios 报错,求有经验的大佬来看看
刚开始报错AxiosError.call(axiosError, error.message, code, config, request, response); ^ AxiosError: Parse Error: Invalid header value char
Google 搜索后说是请求头加上insecureHTTPParser: true,加上之后报错变成了
reject(new AxiosError( ^ AxiosError: Request failed with status code 403