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.

Unable to provide URL in custom JSON fields

See original GitHub issue

Steps to reproduce the problem:

  1. Create new gist with below as metadata:
{
    "name": {
        "title": "Full Name",
        "type": "string",
        "githubKey": "name"
    },
    "privacy": {
        "title": "I acknowledge the Privacy Policy - https:\/\/website.com\/legal\/privacy-policy",
        "type": "boolean",
        "required": true
    }
}
  1. Configure a new link with above gist as CLA.
  2. Try to sign it.

What is the expected result? That it parses the privacy.title field as valid json. the culprit is the colon as using: https//website.com/legal/privacy-policy as the title will make the gist parse successfully.

What happens instead? (Unexpected token h in JSON at position 671)

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
tobiasbrodersencommented, Feb 15, 2021

I tried debugging this myself yesterday evening, but this is essentially the first time I working with Angular/Javascript - I hope to continue the debugging the next couple of evening… If I find a fix I intent to make a PR.

Any pointers or help in regards to this would be greatly appreciated.

0reactions
stale[bot]commented, Jun 1, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Custom Connector unable to process json correctly
Hello, I'm trying to create an action for an api for my custom connector and when I import from sample for the request...
Read more >
CLA Stopped working, error: Unexpected token in JSON · Issue ...
KharitonOff mentioned this issue on Feb 15, 2021. Unable to provide URL in custom JSON fields #660. Open. @snyk-bot snyk-bot mentioned this issue...
Read more >
Not able to convert Json with @ in field to custom java Object
This is because you are not use Jackson's ObjectMapper to output the BookInfo as a JSON string. In the first attempt, you are...
Read more >
Advanced field editing using JSON | Cloud automation Cloud
The More options field on automation actions in Jira Cloud allow you to specify a valid JSON object reference and edit issue fields....
Read more >
Error while parsing JSON Response in REST API Post call
I was able to resolve the issue. I had forgotten to append "?format=json" at the end of the REST url. So it was...
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