Giter VIP home page Giter VIP logo

jd_tencent_scf's Issues

部署不上腾讯云

部署了 腾讯云里没变化是什么原因?
Run node tencentscf.js
TypeError: Cannot read property 'then' of undefined
at /home/runner/work///tencentscf.js:25:33
at Object. (/home/runner/work///tencentscf.js:171:3)
at Module._compile (internal/modules/cjs/loader.js:1068:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10)
at Module.load (internal/modules/cjs/loader.js:933:32)
at Function.Module._load (internal/modules/cjs/loader.js:774:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47
写入action.js成功
(node:1728) UnhandledPromiseRejectionWarning: TypeError: cb is not a function
at ScfClient.failRequest (/home/runner/work///node_modules/tencentcloud-sdk-nodejs/tencentcloud/common/abstract_client.js:65:9)
at /home/runner/work///node_modules/tencentcloud-sdk-nodejs/tencentcloud/common/abstract_client.js:79:102
at processTicksAndRejections (internal/process/task_queues.js:95:5)
(Use node --trace-warnings ... to show where the warning was created)
(node:1728) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:1728) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

image

云函数好像扣费了

同样跑了几个月的项目,今天提示我这个月欠费了 前面都没有这种情况 是什么原因呢

部署到云函数报错了user define msg body。请大佬指教,谢谢

START RequestId:46776b55-31d8-4669-bd32-7a01a2a0b512

2021-06-11T15:56:38.786Z 46776b55-31d8-4669-bd32-7a01a2a0b512 user define msg body

2021-06-11T15:56:39.071Z 46776b55-31d8-4669-bd32-7a01a2a0b512 Error: Cannot find module './user define msg body.js'

Require stack:

  • /var/user/index.js

  • /var/runtime/node12/UserFunction.js

  • /var/runtime/node12/Runtime.engine.js

  • /var/runtime/node12/bootstrap.js

    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:982:15)

    at Function.resolve (internal/modules/cjs/helpers.js:83:19)

    at Runtime.exports.main_handler [as handler] (/var/user/index.js:10:36)

    at Runtime.handleOnce (/var/runtime/node12/Runtime.engine.js:217:23)

    at Timeout._onTimeout (/var/runtime/node12/Runtime.engine.js:55:12)

    at listOnTimeout (internal/timers.js:549:17)

    at processTimers (internal/timers.js:492:7) {

    code: 'MODULE_NOT_FOUND',

    requireStack: [

    '/var/user/index.js',

    '/var/runtime/node12/UserFunction.js',

    '/var/runtime/node12/Runtime.engine.js',

    '/var/runtime/node12/bootstrap.js'

    ]

}

Response RequestId:46776b55-31d8-4669-bd32-7a01a2a0b512 RetMsg:null

END RequestId:46776b55-31d8-4669-bd32-7a01a2a0b512

Report RequestId:46776b55-31d8-4669-bd32-7a01a2a0b512 Duration:301ms Memory:128MB MemUsage:16.238281MB

同步云函数替换变量时报错了

Run if [ $***_COOKIE ]; then sed -i "/variables/a\ _COOKIE: $_COOKIE" serverless.yml; fi;
sed: -e expression #1, char 33: extra characters after command
Error: Process completed with exit code 1.

在同步云函数 时,报错如上,请大佬帮忙,感谢

自动同步的问题

为什么已经获取了PAT,也设置了,但是每次都无法更新成功,那个获取的脚本每次都运行错误。请问如何正确的同步脚本

关于elecV2P通知格式模板

这里仅提供pushplus推送方式模板,其他通知方式根据官方文档以此类推

{
    "token":"xxxxxx",
    "title":`$title$`,
    "content":`$body$`,
}

具体设置如下图所示

360截图20210529203820194

为什么腾讯云函数的日志查询里全是报错的

查询了下腾讯云函数的日志,期中有好多提示“调用失败”,求大佬帮忙解决,跪谢!!!
部分提示“调用失败”的日志如下:
(1)
日志:
START RequestId:7d51b0d9-037b-4305-8eee-b09ef245face
2021-06-09T14:01:02.179Z 7d51b0d9-037b-4305-8eee-b09ef245face jd_half_redrain
2021-06-09T14:01:02.330Z 7d51b0d9-037b-4305-8eee-b09ef245face
2021-06-09T14:01:02.330Z 7d51b0d9-037b-4305-8eee-b09ef245face jd_z_health_community
2021-06-09T14:01:02.331Z 7d51b0d9-037b-4305-8eee-b09ef245face jd_zooCollect
2021-06-09T14:01:02.331Z 7d51b0d9-037b-4305-8eee-b09ef245face jd_kj
ERROR RequestId:7d51b0d9-037b-4305-8eee-b09ef245face Result:{"errorCode":1,"errorMessage":"user code exception caught","stackTrace":"SyntaxError: Unexpected token '\u003c'\n at Request._callback (/var/user/index.js:26:27)\n at Request.self.callback (/var/user/node_modules/request/request.js:185:22)\n at Request.emit (events.js:311:20)\n at Request.\u003canonymous\u003e (/var/user/node_modules/request/request.js:1154:10)\n at Request.emit (events.js:311:20)\n at IncomingMessage.\u003canonymous\u003e (/var/user/node_modules/request/request.js:1076:12)\n at Object.onceWrapper (events.js:417:28)\n at IncomingMessage.emit (events.js:323:22)\n at endReadableNT (_stream_readable.js:1204:12)\n at processTicksAndRejections (internal/process/task_queues.js:84:21)","statusCode":430}
END RequestId:7d51b0d9-037b-4305-8eee-b09ef245face
Report RequestId:7d51b0d9-037b-4305-8eee-b09ef245face Duration:389ms Memory:128MB MemUsage:17.003906MB

(2)
START RequestId:5fc9515c-914d-4795-ab9b-95bf12cb5681
2021-06-09T13:31:03.148Z 5fc9515c-914d-4795-ab9b-95bf12cb5681 jd_half_redrain
2021-06-09T13:31:03.270Z 5fc9515c-914d-4795-ab9b-95bf12cb5681
2021-06-09T13:31:03.270Z 5fc9515c-914d-4795-ab9b-95bf12cb5681 jd_z_health_community
2021-06-09T13:31:03.271Z 5fc9515c-914d-4795-ab9b-95bf12cb5681 jd_zooCollect
2021-06-09T13:31:03.271Z 5fc9515c-914d-4795-ab9b-95bf12cb5681 jd_kj
ERROR RequestId:5fc9515c-914d-4795-ab9b-95bf12cb5681 Result:{"errorCode":1,"errorMessage":"user code exception caught","stackTrace":"SyntaxError: Unexpected token '.'\n at Request._callback (/var/user/index.js:26:27)\n at Request.self.callback (/var/user/node_modules/request/request.js:185:22)\n at Request.emit (events.js:311:20)\n at Request.\u003canonymous\u003e (/var/user/node_modules/request/request.js:1154:10)\n at Request.emit (events.js:311:20)\n at IncomingMessage.\u003canonymous\u003e (/var/user/node_modules/request/request.js:1076:12)\n at Object.onceWrapper (events.js:417:28)\n at IncomingMessage.emit (events.js:323:22)\n at endReadableNT (_stream_readable.js:1204:12)\n at processTicksAndRejections (internal/process/task_queues.js:84:21)","statusCode":430}
END RequestId:5fc9515c-914d-4795-ab9b-95bf12cb5681
Report RequestId:5fc9515c-914d-4795-ab9b-95bf12cb5681 Duration:375ms Memory:128MB MemUsage:16.921875MB

(3)
START RequestId:a9077be9-22b0-4622-b197-6ce7d55f421e
2021-06-09T13:20:00.110Z a9077be9-22b0-4622-b197-6ce7d55f421e jd_pigPet
2021-06-09T13:20:00.252Z a9077be9-22b0-4622-b197-6ce7d55f421e jd_syj
2021-06-09T13:20:00.252Z a9077be9-22b0-4622-b197-6ce7d55f421e jd_kd
2021-06-09T13:20:00.252Z a9077be9-22b0-4622-b197-6ce7d55f421e jd_jxlhb
2021-06-09T13:20:00.253Z a9077be9-22b0-4622-b197-6ce7d55f421e jd_jdzz
2021-06-09T13:20:00.253Z a9077be9-22b0-4622-b197-6ce7d55f421e jd_nzmh
2021-06-09T13:20:00.253Z a9077be9-22b0-4622-b197-6ce7d55f421e jd_monk_shop_follow_sku
2021-06-09T13:20:00.254Z a9077be9-22b0-4622-b197-6ce7d55f421e jd_jump
2021-06-09T13:20:00.254Z a9077be9-22b0-4622-b197-6ce7d55f421e jd_mcxhd
2021-06-09T13:20:00.254Z a9077be9-22b0-4622-b197-6ce7d55f421e jd_star_shop

ERROR RequestId:a9077be9-22b0-4622-b197-6ce7d55f421e Result:{"errorCode":1,"errorMessage":"user code exception caught","stackTrace":"SyntaxError: Invalid or unexpected token\n at Request._callback (/var/user/index.js:26:27)\n at Request.self.callback (/var/user/node_modules/request/request.js:185:22)\n at Request.emit (events.js:311:20)\n at Request.\u003canonymous\u003e (/var/user/node_modules/request/request.js:1154:10)\n at Request.emit (events.js:311:20)\n at IncomingMessage.\u003canonymous\u003e (/var/user/node_modules/request/request.js:1076:12)\n at Object.onceWrapper (events.js:417:28)\n at IncomingMessage.emit (events.js:323:22)\n at endReadableNT (_stream_readable.js:1204:12)\n at processTicksAndRejections (internal/process/task_queues.js:84:21)","statusCode":430}
END RequestId:a9077be9-22b0-4622-b197-6ce7d55f421e
Report RequestId:a9077be9-22b0-4622-b197-6ce7d55f421e Duration:426ms Memory:128MB MemUsage:15.164062MB

求大佬帮忙解决,跪谢!!!!

第6步无法执行

前面按教程都设置好了,但是第6步执行部署的时候没法执行,我的workflow列表里是空的,也试了随便修改个东西提交依然是空的,也不知道什么问题
image

美丽研究院在elecV2P运行报错

const WebSocket = require('ws');
^

ReferenceError: require is not defined
at jd_beauty.js:13:19
at Script.runInContext (node:vm:141:12)
at Script.runInNewContext (node:vm:146:17)
at Object.runInNewContext (node:vm:301:38)
at /usr/local/app/script/runJSFile.js:192:24
at new Promise ()
at runJS (/usr/local/app/script/runJSFile.js:168:10)
at /usr/local/app/script/runJSFile.js:289:5
at new Promise ()
at runJSFile (/usr/local/app/script/runJSFile.js:288:10)

elecv2p请问环境变量和互助码怎么添加?

在研究elecv2p,想了解一下怎么添加互助码的。已部署有docker,是直接在yml文件添加的,那在elecv2p呢?我在jsmanage上面这么添加,好像没有收到通知,还是说通知只能用setting里重新配置?

elecv2p里添加环境变量的方式

是像填账号Cookie一样写在JSMANAGE那里吗?包括各种互助码

image

像图里我这样写对吗老哥,然后像JOY_RUN_FLAG这样的值的TYPE是不是要改成boolean?麻烦老哥有空回答下,谢谢啦

elecv2p cookie 问题

我的帐号是中文,pt_pin后面不是jd_xxxxx格式,%开头,总是提示cookie问题,让我获取cookie

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.