SpaceK33z / web-to-plex

🚠 Adds a button on various movie & TV show sites to open it in Plex.
Other
122 stars 18 forks source link

Issue: Ombi doesn't work #161

Closed Magikarplvl4 closed 4 years ago

Magikarplvl4 commented 4 years ago

Use this if Web to Plex doesn't run on any page, and you have Developer Mode enabled. Please use the table below to point to the error location.


Describe the error When i try to push a request to ombi, a error occurred everytime

To Reproduce Steps to reproduce the behavior:

  1. Go to (for example) https://trakt.tv/shows/fbi
  2. Click on add tv show in web to plex
  3. Request is sending
  4. getting error error

Estimated location Use the fail locator to establish where the error is. Can also be found in the Extension manager's error reports. utils.js:2012

Screenshots If applicable, add screenshots to help explain your problem. error

Extension Information

Additional comments Add any other comments about the problem here, such as how often the issue occurs, any new changes, etc.

error in console:

utils.js:2012 Error adding to Ombi: SyntaxError: Unexpected end of JSON input @0B: Push_Ombi => fetch(<IP Address>, { headers }).catch(error => { sendResponse }) {headers: {…}, request: {…}, url: <IP Address>}
(anonymous) @ utils.js:2012

error in ombi:

fail: Ombi.Api.Api[1000]
      StatusCode: BadRequest, Reason: Bad Request, RequestUri: http://api.tvmaze.com/lookup/shows?thetvdb=0
fail: Ombi.ErrorHandlingMiddleware[0]
      Something bad happened, ErrorMiddleware caught this
System.ArgumentNullException: Value cannot be null.
Ephellon commented 4 years ago

Hi. For "error in ombi," it says the ID is 0, may I ask what show you were trying to add?

Got it.

Ephellon commented 4 years ago

Found the problems, the apikey needs to appended to the URL

Ephellon commented 4 years ago

Alright, getting ready to push the updated version. Running a few more tests

Magikarplvl4 commented 4 years ago

Thanks for the quick response and investigation! :)

Ephellon commented 4 years ago

No problem :) just need to fix CouchPotato again

Ephellon commented 4 years ago

Pushing v4.1.2.4

Ephellon commented 4 years ago

Still failing, will redo

Ephellon commented 4 years ago

Ah, added it correctly, but not in all needed spots