petio-team / petio

Petio Request, Discover, Review
https://petio.tv
MIT License
253 stars 28 forks source link

Can't edit Radarr/Sonarr config #336

Closed Sebclem closed 3 years ago

Sebclem commented 3 years ago

Describe the bug After clicking on test when adding a Sonarr or Radarr config, I got just the background and everything else is gone. If I refresh, i can see that the config has been added, but if i click on edit -> Only background. If I click on test, i got Radarr Test Connection success! I got this error in the Chrome dev console:

TypeError: this.state.profiles.map is not a function
    at s.value (radarr.js:406)
    at Va (react-dom.production.min.js:182)
    at Ba (react-dom.production.min.js:181)
    at Ou (react-dom.production.min.js:263)
    at mc (react-dom.production.min.js:246)
    at yc (react-dom.production.min.js:246)
    at uc (react-dom.production.min.js:239)
    at react-dom.production.min.js:123
    at t.unstable_runWithPriority (scheduler.production.min.js:19)
    at Go (react-dom.production.min.js:122)

To Reproduce Steps to reproduce the behavior:

  1. Try to add a Sonarr or Radarr server
  2. Click on test => Only background
  3. F5
  4. Click on the newly added server edit button

Expected behavior

Screenshots image image

Desktop (please complete the following information):

AshDyson commented 3 years ago

Can you double check version, 0.4.5 aimed to fix this bug

Sebclem commented 3 years ago

This is my first install, so no cache or something, and Petio is up to date : image image

I'm getting this in server logs, i don't know if it's related : image

AshDyson commented 3 years ago

Ok interesting. What version of RAdarr too?

Sebclem commented 3 years ago

Radarr: 3.1.0.4799 Sonarr: 3.0.6.1196

AshDyson commented 3 years ago

Attempted to replicate but unable to replicate, can you provide details about your Radarr config? Do you have paths / profiles setup etc?

AshDyson commented 3 years ago

After a code review it appears this issue can only be caused by a malformed Radarr response, this is not a bug but discuss this with us on Discord to help you fix whatever issue is causing this.

nipuna-perera commented 3 years ago

I am still seeing this on 0.4.5-alpha. Please re-open

angrycuban13 commented 3 years ago

I am still seeing this on 0.4.5-alpha. Please re-open

This isn't a bug or an issue. Make sure you're filling out the fields correctly. Feel free to join Discord if you need further assistance.