Giter Site home page Giter Site logo

rs-reverse's Issues

自己想添加一个网站 怎么适配呀

D:\Data\Workspace\Download\rs-reverse-main-02>node main.js makecookie -u http://mt1.wfdsjls.com:9908/Login.html
ERROR rs-reverse - Error: 请确保url与适配器匹配, 当前已适配:cnipa、riversecurity、wfdsjls
at module.exports (D:\Data\Workspace\Download\rs-reverse-main-02\src\adapt\index.js:15:46)
at commandHandler (D:\Data\Workspace\Download\rs-reverse-main-02\main.js:72:32)
at D:\Data\Workspace\Download\rs-reverse-main-02\node_modules\yargs\build\index.cjs:1:8993
at j (D:\Data\Workspace\Download\rs-reverse-main-02\node_modules\yargs\build\index.cjs:1:4956)
at _.handleValidationAndGetResult (D:\Data\Workspace\Download\rs-reverse-main-02\node_modules\yargs\build\index.cjs:1:8962)
at D:\Data\Workspace\Download\rs-reverse-main-02\node_modules\yargs\build\index.cjs:1:9551

编译报错

  1. 使用命令 单独js文件
    const documentAll = require('./getDocumentAll.node')
    报错信息如下
    Error: getDocumentAll.node is not a valid Win32 application.
    Node.js v20.11.0

  2. 使用命令
    node node_modules/.bin/jest ./test/documentAll-addon.test.js
    basedir=$(dirname "$(echo "$0" | sed -e 's,\,/,g')")
    ^^^^^^^

    SyntaxError: missing ) after argument list
    at internalCompileFunction (node:internal/vm:77:18)
    at wrapSafe (node:internal/modules/cjs/loader:1288:20)
    at Module._compile (node:internal/modules/cjs/loader:1340:27)
    at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
    at Module.load (node:internal/modules/cjs/loader:1207:32)
    at Module._load (node:internal/modules/cjs/loader:1023:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
    at node:internal/main/run_main_module:28:49

Node.js v20.11.0

本人环境
Windows 11 家庭中文版 64 位
nodejs Node.js v20.11.0

执行命令出错

D:\Test\test\rs>npx rs-reverse makecode -u http://wcjs.sbj.cnipa.gov.cn/sgtmi
C:\Users\12817\AppData\Local\npm-cache_npx\8d44cd73943023ee\node_modules\module-alias\index.js:184
throw new Error('Unable to find package.json in any of:\n[' + pathString + ']')
^

Error: Unable to find package.json in any of:
[C:\Users\12817\AppData\Local\npm-cache_npx\8d44cd73943023ee\node_modules\rs-reverse\package.json]
at init (C:\Users\12817\AppData\Local\npm-cache_npx\8d44cd73943023ee\node_modules\module-alias\index.js:184:11)
at Object. (C:\Users\12817\AppData\Local\npm-cache_npx\8d44cd73943023ee\node_modules\rs-reverse\main.js:3:24)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Module._load (node:internal/modules/cjs/loader:827:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
at node:internal/main/run_main_module:17:47

Node.js v18.0.0
Windows10平台

网址:https://cpquery.cponline.cnipa.gov.cn,出现 ssl 证书错误

➜ npx -p rs-reverse@latest --registry=https://registry.npmjs.org rs-reverse makecode -u https://cpquery.cponline.cnipa.gov.cn

node:internal/process/promises:289
triggerUncaughtException(err, true /* fromPromise /);
^
RequestError: Error: unable to verify the first certificate
at new RequestError (C:\Users\spider\AppData\Local\npm-cache_npx\ee3ad623c772fe40\node_modules\request-promise-core\lib\errors.js:14:15)
at plumbing.callback (C:\Users\spider\AppData\Local\npm-cache_npx\ee3ad623c772fe40\node_modules\request-promise-core\lib\plumbing.js:87:29)
at Request.RP$callback [as _callback] (C:\Users\spider\AppData\Local\npm-cache_npx\ee3ad623c772fe40\node_modules\request-promise-core\lib\plumbing.js:46:31)
at self.callback (C:\Users\spider\AppData\Local\npm-cache_npx\ee3ad623c772fe40\node_modules\request\request.js:185:22)
at Request.emit (node:events:518:28)
at Request.onRequestError (C:\Users\spider\AppData\Local\npm-cache_npx\ee3ad623c772fe40\node_modules\request\request.js:877:8)
at ClientRequest.emit (node:events:518:28)
at TLSSocket.socketErrorListener (node:_http_client:495:9)
at TLSSocket.emit (node:events:518:28)
at emitErrorNT (node:internal/streams/destroy:169:8)
at emitErrorCloseNT (node:internal/streams/destroy:128:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
cause: Error: unable to verify the first certificate
at TLSSocket.onConnectSecure (node:_tls_wrap:1674:34)
at TLSSocket.emit (node:events:518:28)
at TLSSocket._finishInit (node:_tls_wrap:1085:8)
at ssl.onhandshakedone (node:_tls_wrap:871:12) {
code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE'
},
error: Error: unable to verify the first certificate
at TLSSocket.onConnectSecure (node:_tls_wrap:1674:34)
at TLSSocket.emit (node:events:518:28)
at TLSSocket._finishInit (node:_tls_wrap:1085:8)
at ssl.onhandshakedone (node:_tls_wrap:871:12) {
code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE'
},
options: {
jar: RequestJar {
_jar: CookieJar {
enableLooseMode: true,
store: MemoryCookieStore { idx: {} }
}
},
gzip: true,
uri: 'https://cpquery.cponline.cnipa.gov.cn',
resolveWithFullResponse: true,
simple: false,
headers: {
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36',
Connection: 'keep-alive',
Accept: 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,
/*;q=0.8,application/signed-exchange;v=b3;q=0.7',
'Accept-Encoding': 'gzip, deflate, br, zstd',
'Accept-Language': 'zh-CN,zh;q=0.9'
},
callback: [Function: RP$callback],
transform: undefined,
transform2xxOnly: false
},
response: undefined
}

Node.js v20.11.1

瑞数vmp网站征集

可以给出使用瑞数vmp的网站,用于验证和适配!
瑞数vmp应该就是瑞数6,可以自行搜索瑞数哪一代的判断,根据网站顺序验证与适配。

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.