SolarEdgeTech / pyctuator

Monitor Python applications using Spring Boot Admin
Apache License 2.0
175 stars 18 forks source link

Problems encountered during registration #78

Closed wlxgod closed 2 years ago

wlxgod commented 2 years ago

Hello, when I run it with python as below, the server returns 405 error, have you ever encountered this? e1131affbb768012b2d1ff2185ad0ac

21051acbbf2943eff7b4a7fa2720ac7

wlxgod commented 2 years ago

The url, password, and username shown in the image are correct

michaelyaakoby commented 2 years ago

Hi @wlxgod , the regitration_url should be the URL of your SBA (spring-boot-admin), is the value of MONITOR_URL is SBA's "/instances".

SBA exposes an endpoint for applications to register which is used by Pyctuator, so if your SBA is accessible via port 8080 of 1.2.3.4, the registration_url should be http://1.2.3.4:8080/instances.

You are getting 405 for "/monitor" so I suspect you are providing the wrong URL.

wlxgod commented 2 years ago

Thank you very much!!! I have solved this problem!