alfred-bitbucket
alfred-bitbucket copied to clipboard
ERROR: BitBucket[Script Filter] JSON error: No string key for value in object around character 4. in JSON
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?
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
➜ ~ npm --version
6.13.6
➜ ~ nvm version
v13.6.0
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 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
Great I’ll have a look today, thanks for the report
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 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).