StackTraceYo / ombi-bot

Telegram bot for OMBI
40 stars 6 forks source link

No response to /search with new Ombi v4 #39

Open guisua opened 4 years ago

guisua commented 4 years ago

The problem

Chronology

Here are the responses from the bot for different scenarios:

v3 with correct Ombi token

Searching Movies and TV

v3 with incorrect token

Searching Movies and TV
No Available Results
No Search Results
No Available Results
No Search Results

v4 with/without correct token

Searching Movies and TV
daurpam commented 3 years ago

I've only tested with ombi v4, and got the same results as @guisua

StackTraceYo commented 3 years ago

did you try the new docker for v4? @guisua @daurpam

guisua commented 3 years ago

@StackTraceYo yes but I still get no response. I have also tested the apiKey against the Ombi host directly and it is valid

StackTraceYo commented 3 years ago

can you print me some logs

StackTraceYo commented 3 years ago

I just pushed a new version of the 2.2-OMBI-V4 image with better logging. please try it and let me know what you see.

StackTraceYo commented 3 years ago

also - simple mistake ive made in the past is misconfiguring the hostnames-

make sure the OMBI_HOST has the right base url (found in Ombi Configuration on the UI).

guisua commented 3 years ago

I just pulled the image now and here are the logs. I have redacted a few fields.

[trace, com.bot4s.telegram.clients.ScalajHttpClient] REQUEST a36b22fc-da5c-4e8d-8fc8-7ab7db73e7f1 GetUpdates(None,None,Some(30),None)
[trace, com.bot4s.telegram.clients.ScalajHttpClient] RESPONSE a36b22fc-da5c-4e8d-8fc8-7ab7db73e7f1 List(Update(<ID>,Some(Message(3866,Some(User(<ID>,false,<FIRSTNAME>,Some(<LASTNAME>),Some(<USERNAME>),Some(en))),<ID>,Chat(<ID>,Private,None,Some(<USERNAME>),Some(<FIRSTNAME>),Some(<LASTNAME>),None,None,None,None,None,None,None,None),None,None,None,None,None,None,None,None,None,Some(/search friends),Some(List(MessageEntity(BotCommand,0,7,None,None))),None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None)),None,None,None,None,None,None,None,None,None))
[trace, com.bot4s.telegram.clients.ScalajHttpClient] REQUEST a5175d7d-f147-4d7c-9da0-968d73527c2f GetUpdates(Some(<ID>),None,Some(30),None)
[trace, com.bot4s.telegram.clients.ScalajHttpClient] REQUEST 1215a73d-fc35-4223-a4b8-01265b5fc221 SendMessage(Chat(<ID>),*Searching Movies and TV*,Some(Markdown),None,Some(true),None,None)
[trace, com.bot4s.telegram.clients.ScalajHttpClient] RESPONSE 1215a73d-fc35-4223-a4b8-01265b5fc221 Message(3867,Some(User(<ID>,true,Plexy,None,Some(guisua_ombibot),None)),<ID>,Chat(<ID>,Private,None,Some(<USERNAME>),Some(<FIRSTNAME>),Some(<LASTNAME>),None,None,None,None,None,None,None,None),None,None,None,None,None,None,None,None,None,Some(Searching Movies and TV),Some(List(MessageEntity(Bold,0,23,None,None))),None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None,None)
StackTraceYo commented 3 years ago

is that all? if you pulled the new request and you were getting an error we should be seeing the error being logged. are you positive its using the new image?

guisua commented 3 years ago

Yes, I just deleted both the container and the image and pulled the image :2.2-OMBI-V4 from the hub again for good measure. Those are all the logs I get.

StackTraceYo commented 3 years ago

ok im adding some more logging will push a new image shortly.

StackTraceYo commented 3 years ago

new image pushed

guisua commented 3 years ago

I don't understand it. I just deleted everything again and pulled the image from the hub and still don't see any more logs than before and still no response to the search other than the "Searching" reply (so the Telegram token must be configured correctly).

What are the new logs supposed to look like?

PolliSoft commented 3 years ago

Could this be due to an error in Ombi v4? I get the following error when browsing to http://localhost:5000/swagger/index.html. bild

2020-11-17 20:56:21.688 +01:00 [Error] Something bad happened, ErrorMiddleware caught this

System.NotSupportedException: Conflicting method/path combination "POST api/v1/Radarr/tags" for actions - Ombi.Controllers.V1.External.RadarrController.GetTags (Ombi),Ombi.Controllers.V1.External.RadarrController.GetTags (Ombi). Actions require a unique method/path combination for Swagger/OpenAPI 3.0. Use ConflictingActionsResolver as a workaround

   at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.GenerateOperations(IEnumerable`1 apiDescriptions, SchemaRepository schemaRepository)

   at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.GeneratePaths(IEnumerable`1 apiDescriptions, SchemaRepository schemaRepository)

   at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.GetSwagger(String documentName, String host, String basePath)

   at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)

   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)

   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)

   at Ombi.ApiKeyMiddlewear.Invoke(HttpContext context) in /home/vsts/work/1/s/src/Ombi/Middleware/ApiKeyMiddlewear.cs:line 56

   at Ombi.ErrorHandlingMiddleware.Invoke(HttpContext context) in /home/vsts/work/1/s/src/Ombi/Middleware/ErrorHandlingMiddlewear.cs:line 24
Casuallynoted commented 3 years ago

My Ombi V4 bot seems to no longer respond at all when commands go in. It definitely prints them, but it outputs a bunch of "none,none,none" in the terminal and nothing on Telegram at all.

Stuff like this: Test

Not sure if this is the same issue or not though.

PolliSoft commented 3 years ago

After updating Ombi to 4.0.728.0, it now works for me. http://localhost:5000/swagger/index.html also works now.