Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error parsing tokens SyntaxError: Unexpected end of JSON input in console #270

Closed
lukasoppermann opened this issue Oct 12, 2021 · 0 comments · Fixed by #226
Closed

Error parsing tokens SyntaxError: Unexpected end of JSON input in console #270

lukasoppermann opened this issue Oct 12, 2021 · 0 comments · Fixed by #226
Labels
bug Something isn't working

Comments

@lukasoppermann
Copy link

Describe the bug
When pasting an invalid json into the JSON field there is an error in the console.
Just letting you know as you may want to hide it. The plugin works perfectly and shows the invalid warning as well.

Error parsing tokens SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at onChange (<anonymous>:120:292196)
    at onChange (<anonymous>:120:149102)
    at Object.Xe (<anonymous>:79:16070)
    at Ve (<anonymous>:79:16224)
    at <anonymous>:79:34151
    at Er (<anonymous>:79:34245)
    at xr (<anonymous>:79:34659)
    at <anonymous>:79:40307
    at Le (<anonymous>:79:116014)
    at <anonymous>:79:36118
    at Tr (<anonymous>:79:36148)
    at Gt (<anonymous>:79:24431)
    at Yt (<anonymous>:79:23657)
    at t.unstable_runWithPriority (<anonymous>:87:3768)
    at Zo (<anonymous>:79:44488)
    at Me (<anonymous>:79:115754)
    at Vt (<anonymous>:79:23450)
    at HTMLDivElement.r (<anonymous>:120:129875)

To Reproduce
Steps to reproduce the behavior:
Paste invalid json into field.

@six7 six7 added the bug Something isn't working label Oct 13, 2021
six7 added a commit that referenced this issue Oct 23, 2021
@six7 six7 mentioned this issue Oct 23, 2021
7 tasks
@six7 six7 closed this as completed in #226 Oct 31, 2021
six7 added a commit that referenced this issue Oct 31, 2021
* add initial url sync

* add new provider type

* add form

* add basic functionality

* add working pull

* add push dialog, working state

* added checks for commit message

* add tests

* rework confirm message

* add dirty state

* add test

* fix jsonbin

* remove legacy code

* wip

* fix pullTokens

* add tests

* add first draft of cli script

* fix tests

* add pkg

* working cli tool with github actions

* remove console log

* Add robustness

* bump token-transformer

* prettify ui

* bump release

* add custom branch input to pushDialog

* added loading screen, fixed jsonbin add

* add excludes to token transformer

* add readme to token-transformer

* fix transformer when no excludes are present

* remove token context

* add url sync

* allow users to resize window by dragging corner

* fix url sync

* ignore tokens from style creation that start with _

* fix tooltip render error

* fix tooltip in list mode

* fix resize pointer

* fix #266

* fix colors button row

* fixes #274

* fix / replacement

* fixes #142

* add check for alias

* add token preview in edit

* fix undefined pr state if no file existed

* add editProhibited based on user role

* fix alias value of 0

* add new defaults

* remove spellcheck from inputs

* adds json5 support, fixes #270, fixes #283

* add unique check to names

* fix color opacity values not matching when using 0.5

* fixes #166, fixes #209

* add type to new token creation

* fixes #276

* fixes unique name check

* fix unique name check

* capitalize description in edit form

* introduce new merging function

* fix aliasing of rgba colors

* add new resize icon

* fix capitalization of input labels

* fix name of form

* fix async fn

* correctly saves whole context obj except secret

* add placeholder for value

* fix spec

* fix test

* remove console.log

* fix when no tokens file was present

* integrate style name ignore for updating nodes

* fix ignore part when applying

* fix modal padding except for edit token form

* fix token-transformer

* bump token transformer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants