Uptime-Kuma-Web-API icon indicating copy to clipboard operation
Uptime-Kuma-Web-API copied to clipboard

Error while creating a monitor

Open dantin-durand opened this issue 1 year ago • 11 comments

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 :)

dantin-durand avatar Aug 29 '23 22:08 dantin-durand

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.

louis-pockost avatar Aug 30 '23 12:08 louis-pockost

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

dantin-durand avatar Aug 30 '23 14:08 dantin-durand

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 :)

louis-pockost avatar Aug 30 '23 15:08 louis-pockost

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

feipe56 avatar Oct 19 '23 23:10 feipe56

@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.

alencarsouza avatar Oct 30 '23 07:10 alencarsouza

@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.

mariyamh avatar Nov 03 '23 11:11 mariyamh

@MedAziz11 are you really gonna update the dependencies issue?

Adan49 avatar Nov 03 '23 12:11 Adan49

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

Matthew-Chan-viAct avatar Feb 06 '24 09:02 Matthew-Chan-viAct

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

AldvOnline avatar Aug 16 '24 07:08 AldvOnline

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: @.***>

mariyamh avatar Aug 16 '24 07:08 mariyamh

Seems a bit abandoned the uptime-kuma-api project?

MichaelKoll-MKO avatar Sep 17 '24 14:09 MichaelKoll-MKO