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.

Error: SyntaxError: Unexpected number in JSON at position 1

See original GitHub issue

I have tried this numerous ways. I have recreated my SP. I cut and paste the values in to az login to verify. I have altered my yaml to make sure I am inputting the values correctly. But the best I can get is this “Error: SyntaxError: Unexpected number in JSON at position 1”

Here is what I have.

jobs:
  test:
    runs-on: ubuntu-latest
    container:
      image: <redacted>
      credentials:
        username: ${{secrets.ACR_USERNAME}}
        password: ${{secrets.ACR_PASSWORD}}
    steps:

      - name: Login via Az module
        uses: azure/login@v1
        with:
          creds: ${{secrets.AZURE_CREDENTIALS}}
          enable-AzPSSession: true

Example creds.

{
  "clientId": "<redacted>",
  "clientSecret": "<redacted>",
  "subscriptionId": "<redacted>",
  "tenantId": "<redacted>"
}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
issue-label-bot[bot]commented, Oct 6, 2020

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.67. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

0reactions
aksm-mscommented, Nov 2, 2020

Closing the issue, not enough info to debug.

Read more comments on GitHub >

github_iconTop Results From Across the Web

JSON syntax error: 'unexpected number' or 'JSON.parse ...
1. I get a validation error about the value 0000000206 with the first JSON validator found on Google. – JJJ · this can...
Read more >
Fix 'Unexpected token o in json at position 1' - STechies
JavaScript programmers have encountered the “unexpected token o in json at position 1” at some point in their lives. This error is raised...
Read more >
Uncaught SyntaxError: Unexpected number in JSON at ...
Given I want to select multiple gets in a batch operation ( and I have PR #24 ) I receive the error Uncaught...
Read more >
SyntaxError: Unexpected number in JSON at position 1
The error described above as SyntaxError. Invalid Character in Internet Explorer changes to SyntaxError: Unexpected number in JSON at position ...
Read more >
jQuery : JSON syntax error: 'unexpected number' or ... - YouTube
jQuery : JSON syntax error : ' unexpected number ' or ' JSON.parse: expected ',' or '}' after property.
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