Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Unknown application error occurred

オープン
#774 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
38/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
javascript, node.js

調査の方向性

リンクされている issue 再現用リポジトリから始め、yarn を実行し、説明されているとおりに api/login/checksecurityans を実行してください。api/login/checksecurityans.js から api/services/jwt-token-service.js、jsonwebtoken/sign.js までスタックを追跡します。報告された PEM エラーが jsonwebtoken で再現可能なのか、それとも再現環境に固有なのかを特定できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Description

I have been working with Vercel support to resolve an issue where the jsonwebtoken package is encountering an error, "Unknown application error occurred". Vercel has directed me to open an issue here.

Reproduction

https://github.com/vercel-support/issue-reproduction

Here are my steps.

  1. Clone the repo https://github.com/vercel-support/issue-reproduction
  2. run, "yarn"
  3. run the code in the api/login/checksecurityans file
  4. Open Postman and POST to localhost:3000/api/login/checksecurityans
  5. Get this error if you ran the code using 'vercel dev'

Or if you ran the file using node you might see an error like this one

[POST] /api/login/checksecurityans
17:08:28:62
2021-03-22T22:08:28.686Z    6d89535a-42b6-4836-89cd-1de6611f75ea    ERROR    Unhandled Promise Rejection  {"errorType":"Runtime.UnhandledPromiseRejection","errorMessage":"Error: error:0909006C:PEM routines:get_name:no start line","reason":{"errorType":"Error","errorMessage":"error:0909006C:PEM routines:get_name:no start line","code":"ERR_OSSL_PEM_NO_START_LINE","library":"PEM routines","function":"get_name","reason":"no start line","stack":["Error: error:0909006C:PEM routines:get_name:no start line","    at Sign.sign (internal/crypto/sig.js:110:29)","    at Object.sign (/var/task/api/node_modules/jwa/index.js:152:45)","    at Object.jwsSign [as sign] (/var/task/api/node_modules/jws/lib/sign-stream.js:32:24)","    at Object.module.exports [as sign] (/var/task/api/node_modules/jsonwebtoken/sign.js:204:16)","    at JwtTokenService.generateJwt (/var/task/api/services/jwt-token-service.js:57:29)","    at checkSecurityAns (/var/task/api/login/checksecurityans.js:4:33)","    at Server.<anonymous> (/var/task/___vc_helpers.js:813:19)","    at Server.emit (events.js:315:20)","    at parserOnIncoming (_http_server.js:874:12)","    at HTTPParser.parserOnHeadersComplete (_http_common.js:126:17)"]},"promise":{},"stack":["Runtime.UnhandledPromiseRejection: Error: error:0909006C:PEM routines:get_name:no start line","    at process.<anonymous> (/var/runtime/index.js:35:15)","    at process.emit (events.js:327:22)","    at process.emit (/var/task/___vc_sourcemap_support.js:587:21)","    at processPromiseRejections (internal/process/promises.js:245:33)","    at processTicksAndRejections (internal/process/task_queues.js:94:32)"]}
Unknown application error occurred

I do have a package.json file and it does include jsonwebtoken.

Environment

"jsonwebtoken": "8.5.1"
Node v14

主要言語
JavaScript
スター
18.2k
フォーク
1.3k
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

auth0/node-jsonwebtoken のほかの issue

auth0/node-jsonwebtoken の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。