"No JSON object could be decoded" error while creating an API

I’ve figured out what the issue was on my end and maybe this helps any of you guys.
We have a corporate proxy server setup (we probably aren’t the only enterprise).
This has always been a pain to me, but hey I’m no sysadmin.

For this we need to set some exports to make sure we can reach
the outside:

export http_proxy=http://user:pass@proxyhost:3128 export https_proxy=http://user:pass@proxyhost:3128

After I was going through the lines of the bootstrap.sh I saw
the return value was both quite big and somewhat familiar.

The system was trying to go through our proxy in order to get to itself (duh! That is what I had configured to be able to retrieve tyk from the internet)

In order for this to not happen for local connections I added
this line to my .bashrc (where I also had the http_proxy settings)

export no_proxy=localhost,127.0.0.0/8,10.31.12.38,10.0.0.0/8,apim.localdomain.nl

After that I ran below command and what do you know…
`[root@apim ~]# /opt/tyk-dashboard/install/bootstrap.sh apim.localdomain.nl

Creating Organisation
ORGID: 58924c7c660450026f755e09

Adding new user

USER AUTH: d4f5b6311c26461156037182ba0e0308

NEW ID: 58924c7cb72e275a92390f1d

Setting password

DONE

====

Login at http://apim.localdomain.nl:3000/

User: [email protected]
Pass: test123

[root@apim ~]#`

1 Like