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.

Problem with quotes still present ? error 500 json.decoder.JSONDecodeError

See original GitHub issue

Hi,

I read than some pull say this was fixed, but when you add DNS template and forget add quotes to TXT record, this template dont working more

When you apply this template to domain, that domain just have 0 records and admin interface stop working with error 500.

There is any patch for this ?

To reproduce:

-> dns template -> add any template -> add txt record SPF / DKIM or any orther, in data just add o=- and save

Then add domain and select this template.

Domain was added without records, and backend get error 500:

json.decoder.JSONDecodeError
json.decoder.JSONDecodeError: Expecting ',' delimiter: line 1 column 167 (char 166)

Interface stop working until clean history or delete problematic record:

| 688 | Failed to apply template MMT-CD35-118 to test600.com. | {'status': 'error', 'msg': 'Record _domainkey.test600.com./TXT o=-: Parsing record content (try pdnsutil check-zone): Data field in DNS should start with quote (") at position 0 of o=-'}

Get interface back if that history record was deleted:

delete from history where id=688;

There is any fix for this ?

I check that this was merged in 2021 https://github.com/PowerDNS-Admin/PowerDNS-Admin/issues/1060 and https://github.com/PowerDNS-Admin/PowerDNS-Admin/issues/1064 but problem still present ?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
jbe-dwcommented, Apr 5, 2022

Hello @AdvanticGmbH ,

Thank you for the PR. We let @vmarkop or @kkmanos review your changes, as they are the original contributors for the detailed history function.

1reaction
RGanorcommented, Mar 27, 2022

@Skamasle @jbe-dw The problem reproduced on our environment, although we are not using the master but im close enough in the version, and know the changes since, to be 95% sure it will also reproduced on the master. Im trying to isolate this issue to see the exact history entry that caused this exception in json.loads at: https://github.com/PowerDNS-Admin/PowerDNS-Admin/blob/35f2fde0a833739cdb8fcc16f4993518adc8abff/powerdnsadmin/routes/admin.py#L769

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why am I receiving this JSON Decode Error? - Stack Overflow
Kept getting a 429 error back, and because there was no json returned, I was receiving the json decoder error.
Read more >
json.decoder.JSONDecodeError #1211 - GitHub
When I executed jupyter nbextension list I get below error Known nbextensions: Traceback (most recent call last): File ...
Read more >
Python JSONDecodeError Explanation and Solution | CK
The Python JSONDecodeError indicates there is an issue with how a JSON object is formatted. To fix this error, you should read the...
Read more >
Error when decoding JSON ( Expecting ',' delimiter:)
Hello! I use Python 3.6.3 on the wildfly server. I have two different REST services. When I call one of them (getMC) on...
Read more >
500 Internal Server Error - HTTP - MDN Web Docs - Mozilla
... Want to fix the problem yourself? Learn how to contribute! Last modified: Nov 26, 2022 , by MDN contributors. Your blueprint for...
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