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

180
Visualizações
wrangler dev seems to work, but wrangler publish doesn't work, gets error "Unexpected token p in JSON at position 0"

I'm trying to make a serverless API using workers, and when I run "wrangler dev" in the command line, the local server is made and I am able to go to the page without error. A json object is shown on the page which is what I think I want since it is a "GET" request.

When I run "wrangler publish" and go to the published site, it says "Unexpected token p in JSON at position 0". I've looked at many links and I cannot find how to see what is wrong. In Cloudflare, the the logs show that the GET requests go through.

Does anyone know what I can do next to try and solve this issue? Thank you!

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Figured it out, there was an error when I inspect the page, and I used that in combination with console.logs and the cloudflare worker site to fix the problem

about 4 years ago · Juan Pablo Isaza Relatório
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