MedAziz11 / Uptime-Kuma-Web-API

Uptime Kuma REST API
198 stars 41 forks source link

Error while creating a monitor #52

Open dantin-durand opened 1 year ago

dantin-durand commented 1 year ago

Hi, when I try to create a monitor with [POST] /monitors and passing this in the request body:

{ "type": "http", "name": "website", "url":"https://example.com" }

I got this in response status: 500 body: { "detail": "'version'" }

do you have a solution for me?

Thanks for your help :)

louis-pockost commented 1 year ago

Hi,

I have the same problem.

When I look at the requirements.txt file I see : uptime-kuma-api==0.13.0

But the supported uptime kuma versions of the package uptime-kuma-api are :

Screenshot from 2023-08-30 14-45-27

So I think the lib need to be updated to work with the latests version of uptime.

@dantin-durand What is your version of uptime kuma please ?

Thanks.

dantin-durand commented 1 year ago

Hi @louis-pockost ! my version of uptime kuma is 1.23.1 :)

louis-pockost commented 1 year ago

Ok, so the problem seems to be related to the version of the uptime-kuma-api package.

If you go back to version 1.21.2, it works.

I think we should wait for the dependencies to be updated before upgrading to a version higher than 1.21.2.

@MedAziz11 Are you planning to update it soon ?

Thanks for your help :)

feipe56 commented 11 months ago

@louis-pockost Thanks man, that solved it for me at the moment.

alencarsouza commented 10 months ago

@louis-pockost @dantin-durand I've created a PR with the update as I have a similar issue.

Just waiting for @MedAziz11 to have a look at it.

mariyamh commented 10 months ago

@alencarsouza , Are you sure it is working? I tried adding your changes instead of working it is giving me an invalid host error. for Kuma-api version 1.2.1 && Kuma-uptime 1.23.2.

Adan49 commented 10 months ago

@MedAziz11 are you really gonna update the dependencies issue?

Matthew-Chan-viAct commented 7 months ago

Has this issue be resolved? I cannot have it working with Uptime Kuma 1.23.11

AldvOnline commented 1 month ago

@MedAziz11 Are there any plans to upgrade the api version?

mariyamh commented 1 month ago

Yes i fixed this by excluding it from docker and i added requirement.txt new version of uptime kuma and install it. On Tuesday, February 6, 2024 at 02:52:22 PM GMT+5, Matthew Chan (viAct.ai) @.***> wrote:

Has this issue be resolved? I cannot have it working with Uptime Kuma 1.23.11

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>