Skip to main content

All Questions

Tagged with
1 vote
1 answer
24 views

Interception xhr requests after pressing the load more button with puppeteer

Initially two json files arrive on the site - the rest arrive after clicking the ‘load more’ button. I'm trying to intercept all requests. The example shows how I am waiting for the button to appear ...
Artem Taran's user avatar
-1 votes
0 answers
23 views

Unknown JSON.stringify issue [duplicate]

I've been writing a chatbot for a site, and am working on a command that gives a (non--existant, fake) currency on the bot to buy fun items, and I'm using localStorage and JSON objects for that. But, ...
ccjt's user avatar
  • 37
1 vote
1 answer
47 views

When I make a fetch request then take out the JSON, instead a promise is saved as a variable with the correct JSON in it

When I make a fetch request then take out the JSON, instead a promise is saved as a variable with the correct JSON in it. I can not figure out how to pull the data from the promise in the variable in ...
Jay _'s user avatar
  • 13
-4 votes
1 answer
73 views

How to deal with string with '\' in it? [closed]

For example, a string '{"a":"1","b":"{\"c\": \"2\"}"}'with '\' in it. When I do JSON.parse('{"a":"1","b":"...
Hunter's user avatar
  • 128
0 votes
0 answers
69 views

Posting to Google Sheets via Google Apps Script - "Unexpected token '<', "<!DOCTYPE "... is not valid JSON" Error [closed]

I'm a beginner web developer building an online RSVP form that should save data to a Google Sheet via a Heroku proxy and Google Apps Script. While fetching data works, submitting form data via a POST ...
Emma Hernandez's user avatar
0 votes
2 answers
75 views

Convert String Data to JSON using JSON.parse

I want to parse the data within section "Data returned from API". This data is from an API and I want to remove ROW_NUMBER and ensure the data is JSON. I'm using JSON.parse() but I'm getting ...
user3685388's user avatar
0 votes
1 answer
48 views

Converting Terraform tfvars to JSON using javascript

I am currently trying to convert a terraform tfvar file as a string into a list of key value pairs for each attribute in the file. I have tried to use a few packages, such as js-hcl-parser and hcl2-...
user30303278's user avatar
-3 votes
1 answer
54 views

Problem in a recurrency function in node.js

I need a help about my code. The function JsontoBase64 receives a json (parameter named jsonobj) which contains a base64 encoded pdf (field named "BytesBoleto") among many other fields. For ...
Mr Papiro's user avatar
0 votes
0 answers
43 views

Javascript web extension not loading on SPA websites unless the page is refreshed

I tried to make a web extension that takes you to another website when you click on the page when you are in a specified subcategory. It works on traditional websites like https://www.w3schools.com/...
Tiger Lion's user avatar
-2 votes
0 answers
35 views

How to catch a JSON error preventing page load [duplicate]

After my computer has been idle for a while and I load a page, I sometimes get an error like SyntaxError: JSON.parse: unexpected character at line 2 column 5 of the JSON data and the page does not ...
user460114's user avatar
  • 1,887
0 votes
0 answers
35 views

Is there a solution to Chart.js improperly outputting pie/doughnut charts?

I am making a website which is predominantly for data visualisation, data is selected by the user (who also selects a chart type) and returned with PHP and I'm using Chart.js on the client side to ...
elijah's user avatar
  • 1
0 votes
0 answers
33 views

Slash Commands Are Not Getting Registered, Discord js v14.18.0

There is no error in console. I am confused with it. with the discord js version 14.18.0 I am using this from long time but never faced this error but now I am, Slash commands are not getting ...
shadow's user avatar
  • 11
0 votes
0 answers
31 views

Checking product availability and quantity validity | AssertionError: The server response does not contain the 'products' field or is not valid JSON

[Javascript] Response code 200 or 201 | AssertionError: expected 500 to be one of [ 200, 201 ] Checking product availability and quantity validity | TypeError: Cannot read properties of undefined (...
dddsssvvv's user avatar
0 votes
0 answers
17 views

How to load multiple JSON Bodymovin / Lottie animation?

I am trying to load multiple JSON / Lottie animation in one page but different element. Since I'm clueless about Javascript, I can't get it to work. I already have working code for loading single JSON,...
AlFirous's user avatar
-1 votes
1 answer
67 views

TypeError: Do not know how to serialize a BigInt WHEN JSON.stringify(OBJECT)

Right now I'm getting a weird error, I'm trying to convert an object to a string and I get this type error. const x = await web3.eth.getTransaction(tx); console.log(x); ^ ...
Teyrox's user avatar
  • 313

15 30 50 per page
1
2 3 4 5
5243