Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Unknown application error occurred

Aperta
#774 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
38/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
javascript, node.js

Direzione di ricerca

Inizia con il repository collegato per la riproduzione dell’issue, esegui yarn e prova api/login/checksecurityans come descritto. Segui lo stack da api/login/checksecurityans.js passando per api/services/jwt-token-service.js e jsonwebtoken/sign.js; il lavoro è completato quando hai determinato se l’errore PEM segnalato è riproducibile in jsonwebtoken o è specifico della configurazione di riproduzione.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
JavaScript
Stelle
18.2k
Fork
1.3k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di auth0/node-jsonwebtoken

Tutte le issue di auth0/node-jsonwebtoken

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.