question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hi! I love wttr.in! Im use one for my polybar script and dosnt have problems, but now im try use json output in js script (for my home page). Im catch response error in console

Uncaught (in promise) SyntaxError: Unexpected end of input at eval

code:

const w = fetch("http://wttr.in/?format=j1", { mode: "no-cors" })
      .then(r => r.json())
      .then(data => console.log(data));

Im do some wrong?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
chubincommented, May 23, 2020

The problem is fixed. Please test

0reactions
chubincommented, Jun 2, 2020

I close the issue, please comment/open a new one if there are any problems here

Read more comments on GitHub >

github_iconTop Results From Across the Web

JSON output - Puppet
This command outputs an array of objects. Each object uses the following keys: action (string): The type of action that was executed.
Read more >
JSON Introduction - W3Schools
JSON stands for JavaScript Object Notation. JSON is a text format for storing and transporting data. JSON is "self-describing" and easy to understand ......
Read more >
Working with JSON - Learn web development | MDN
JavaScript Object Notation (JSON) is a standard text-based format for representing structured data based on JavaScript object syntax.
Read more >
Format Query Results as JSON with FOR JSON - SQL Server
To maintain full control over the format of the JSON output, use FOR JSON PATH . You can create wrapper objects and nest...
Read more >
Producing JSON output - IBM
The JSON text can be used to represent a resource for the interface to a Web service, and is encoded in UTF-8 if...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found