Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

285
Visualizações
Getting 500 Internal Server Error on JAVA but 200 with Node

Can someone assist.

I am currently working on a project and working with some APIs.

I have two identical codes Java and Node(Javascript)

Both of the codes were working fine before but suddenly the Java one is now returning a status code 500 while the Node one returns 200.

Here is the Successful one in Node:

POST http://localhost:3001/pay

Network address: "::1" family: "IPv6" port: 3001

Request Headers Content-Type: application/json User-Agent: PostmanRuntime/7.29.0 Accept: / Cache-Control: no-cache Postman-Token: c3a4c3e4-8619-4d00-b1f0-5d32f0e65890 Host: localhost:3001 Accept-Encoding: gzip, deflate, br Connection: keep-alive Content-Length: 71

Response Headers X-Powered-By: Express Content-Type: application/json; charset=utf-8 Content-Length: 693 ETag: W/"2b5-crRygc3ceDh/mgZoQAOuLBQoVsc" Date: Fri, 03 Jun 2022 08:42:47 GMT Connection: keep-alive Keep-Alive: timeout=5

This is the one failing Java:

POST http://localhost:8090/pay

Network address: "::1" family: "IPv6" port: 8090

Request Headers Content-Type: application/json User-Agent: PostmanRuntime/7.29.0 Accept: / Cache-Control: no-cache Postman-Token: 88453221-ab41-4b51-843b-3022a5db571a Host: localhost:8090 Accept-Encoding: gzip, deflate, br Connection: keep-alive Content-Length: 71

Response Headers Content-Type: application/json Transfer-Encoding: chunked Date: Fri, 03 Jun 2022 08:43:19 GMT Connection: close

Response Body {"timestamp":"2022-06-03T08:43:19.971+00:00","status":500,"error":"Internal Server Error","path":"/pay"}

Please note the request headers and body is the same for both projects.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda