Can't access REST API (redirects to web-interface)

Hi,
we’ve successfully set up LoRaServer and RabbitMQ (RabbitMQ instead of Mosqiutto because we’re already running it). Please note that we don’t use default ports.
I can access the WebUI via https://10.0.2.4:9080 but can’t access the API via https://10.0.2.4:9080/api - that just redirects to the regular WebUI. Do we have to enable the API console or so?

Edit: Oh wow, that’s strange. It works in Chrome but not in Safari.

I have same issue.
But my case is chrome.
When I try to connect to domain:8080/api
It’s redirect to domain:8080/#api/organizations
There is no special logs of app server

loraserver : v2.0.2
app server : v2.0.1

  • login screen
    K-008
    K-009

  • organizations
    K-011
    K-010

Hmmm, I’ve seen this now also. Somethings seems to have changed in latest ReactJS version. This issue seems to be equal to: https://github.com/facebook/create-react-app/issues/3299.

If somebody could help out to dig deeper into this, that would be great :slight_smile:

Hi,

We have a LoRa Server Instance which sits behind an NGINX proxy for SSL and the likes, everything is working as expected (Including the Frame Logs!) apart from the API.

If you try to reach the API, it redirects you to https://blahblah/api#/organizations/1/applications.

Is there something I am missing?

Cheers,
Tom

My solution was to put “try_files $uri;” to nginx location block:

location / {
try_files $uri;
proxy_ssl_session_reuse off;

}

This has been fixed in the master branch by:

Nice, Thanks for your support :+1: