alfred-bitbucket icon indicating copy to clipboard operation
alfred-bitbucket copied to clipboard

ERROR: BitBucket[Script Filter] JSON error: No string key for value in object around character 4. in JSON

Open BreiteSeite opened this issue 5 years ago • 7 comments

Hey, i followed the readme but i receive the following error when using the workflow:

[13:36:51.456] ERROR: BitBucket[Script Filter] JSON error: No string key for value in object around character 4. in JSON:
{
  OPTIONS: {
    auth: 'xxx:xxx',
    json: true,
    method: 'POST',
    body: { grant_type: 'client_credentials' },
    form: true
  }
}

Any tipps what might be wrong here?

BreiteSeite avatar Jan 17 '20 12:01 BreiteSeite

What is your versions of node and npm? I’ll try to reproduce using your versions. I have an idea where I can start investigating

nicklayb avatar Jan 17 '20 13:01 nicklayb

➜  ~ npm --version
6.13.6
➜  ~ nvm version  
v13.6.0

BreiteSeite avatar Jan 17 '20 13:01 BreiteSeite

In #23 people seems to have the same problem, can you tell me if it happens all the time or only for the first time that you call the bit command?

nicklayb avatar Jan 17 '20 13:01 nicklayb

@nicklayb first, thanks for the short response time.

It happens everytime i enter the bit command in alfred. The link of run-script in the debug console of alfred actually points to repo.js

BreiteSeite avatar Jan 17 '20 13:01 BreiteSeite

Great I’ll have a look today, thanks for the report

nicklayb avatar Jan 17 '20 13:01 nicklayb

Can you give it a try now using 1.4.2? The fix might look stupid but as far as I understand, Alfred interprets the stdout of the afly package, so a lost console.log might break it completely.

nicklayb avatar Jan 17 '20 15:01 nicklayb

@nicklayb sure thing. Tried it, doesn't work. The error in the debug console disappeared, but it's not working (i.e. not finding ANY repos).

BreiteSeite avatar Jan 17 '20 15:01 BreiteSeite