Replies: 3 comments 10 replies
-
hi, If other third-party systems are integrated with Hertzbeat, you should use its API, i.e. 1157/api/xxx instead of port 4200, which is the startup port of the local front end. |
Beta Was this translation helpful? Give feedback.
-
Hi, please ensure that you have started the backend service locally. You mentioned that the remote URL 192.145.22.87:4200/api/monitors/import works fine. You can try accessing 192.145.22.87:1157/api/monitors/import to check if the import is successful. I couldn't reproduce your issue locally. |
Beta Was this translation helpful? Give feedback.
-
First, you have port 4200, so I think you started hertzbeat from the source code. Second, 4200 is the front-end port, and 1157 is the back-end port, which means that normally, you can successfully import json from port 1157, but not from 4200. I think you need to pay attention to the following two issues. The first is how your program is started, whether it is the same as the master branch, and whether other parameters are added. The second is whether the content of your json file is correct and whether it is exported from the hertzbeat page. I have done some tests for you. In order to help you troubleshoot the problem, Please check your environment provide the way and command to start the front-end and back-end, and the content of the json file used for testing. |
Beta Was this translation helpful? Give feedback.
-
I have written one service for import of JSON file after getting device IP automatically, I have specify the API url for import i.e, /api/monitors/import in the application.yml file. So my question is-
When I give API url for localhost:1157/api/monitors/import it does not work.
When I give 192.145.22.87:4200/api/monitors/import then it works, it imports automatically and we can see in UI. Here 192.145.22.87 is where I am running other hertzbeat remotely.
port 1157 is for backend where swagger is also running but import is working on 4200 port which is for frontend. WHY?
When I give localhost:4200/api/monitors/import it does not import because Backend gives exception url NOT FOUND. Therefore FrontEnd I cannot start; If front can start without backend then it surely import.
Can I do local import? How.
Beta Was this translation helpful? Give feedback.
All reactions