Heroku API [Apr 03]

:raising_hand_man: paulc asked

Hi all - loving the nocodb so far, been playing with it locally… I want to test it with external connectivity, so did the one click Heroku spin up (new to Heroku too). Looks good so far, I can create/edit tables in my browser… but can’t seem to access the swagger URLs, it returns {“msg”:“Access Denied : Please Login or Signup for a new account”} - is there something I need to do to make the API available? I’m accessing with xc-auth header and the error message feels more like a Heroku thing than nocodb?

:person_tipping_hand: o1lab replied

Can you paste the curl request example from swagger.

:person_tipping_hand: o1lab replied

with token redacated ofcourse :slightly_smiling_face:

:person_tipping_hand: o1lab replied

pls ensure you are using https

:raising_hand_man: paulc replied

curl -X ‘GET’ ‘https://wsbc-f9db.herokuapp.com/nc/project_1_cpnv/api/v1/Test/1’ -H ‘accept: application/json’ -H ‘xc-auth: ________’

:raising_hand_man: paulc replied

it was http previously, returned an error… with HTTPs it returns a 403 forbidden result, with the same previous message… I’ve been playing outside of Heroku, spun up a VM with Vultr to play around with, and having similar issues - definitely not as smooth as installing on my VM at home, which I’m now trying to remember which way I did it, to try and replicate… works fine in my local network but struggling to get it listening on the public IP… The docs are good to a point, but lack a bit of detail for a couple of use cases (like non-docker, or public IP/proxying when in docker)… feel like “I’ll get there, but could use a nudge in the right direction” with a dose of “it shouldn’t be this hard for a quick’n’dirty demo, I feel kinda dumb” haha

:raising_hand_man: wkw replied

are you using the auth token or api token for xc-auth?

:raising_hand_man: paulc replied

I was using API token… then realized the docs/example talked about the user auth token… which worked great… so maybe the API token isn’t for what I thought it was for?

:raising_hand_man: wkw replied

API token s used to be integrated with 3rd party apps

:raising_hand_man: paulc replied

Gotcha - reading up the docs more, it’s a different header (-token instead of -auth)… I’ll continue playing - thanks for the help!

Autogenerated from discord


Join NocoDB’s community

DiscordTwitterRedditDocs