Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

400 error on download #20

Open
dweagle opened this issue Mar 28, 2024 · 5 comments
Open

400 error on download #20

dweagle opened this issue Mar 28, 2024 · 5 comments

Comments

@dweagle
Copy link

dweagle commented Mar 28, 2024

Not sure what this means. It's the only error I get from your overlays.

Overlay Error: Status 400 when attempting download of: https://raw.githubusercontent.com/s0len/meta-manager-config/main/overlays/network-top-left/#0.png |

@ymendel
Copy link

ymendel commented Mar 29, 2024

You need to use https://raw.githubusercontent.com/s0len/meta-manager-config/main/overlays/network-top-left/%230.png

The # is a special character.

If you're getting #0 as a variable in PMM and not some hard-coded text, then use the _encoded version of the variable. (see https://metamanager.wiki/en/latest/files/templates/?h=_encoded#template-definition)

@shanester64
Copy link

Same results here. The script runs, with the network overlays and status with exception...
Here are the last errors of the log..

Plex Error: network: Crave not found
Overlay Error: Status 400 when attempting download of: https://raw.githubusercontent.com/s0len/meta-manager-config/main/overlays/network-top-left/#0.png

Using the code from the exampleconfig (replacing pmm with default, per kometa)

@Droppisalt
Copy link
Contributor

@dweagle79 @shanester64
Not sure for Shane's Crave error. But for the #0.png error, here's what I did (last line):

- default: network
  template_variables:
    horizontal_align: left
    horizontal_offset: 0
    vertical_offset: 0
    vertical_align: top
    back_width: 1000
    back_height: 1500
    url: https://raw.githubusercontent.com/s0len/meta-manager-config/main/overlays/network-top-left/<<key>>.png
    url_#0: https://raw.githubusercontent.com/s0len/meta-manager-config/main/overlays/network-top-left/%230.png

@shanester64
Copy link

I added the line url_#0: https://raw.githubusercontent.com/s0len/meta-manager-config/main/overlays/network-top-left/%230.png which helped.. Still get the crave error.
The error appears to come from the call to:

Below are the logs and a section of my config.yaml

[2024-05-07 02:30:18,723] [builder.py:204] [INFO] |====================================================================================================|
[2024-05-07 02:30:18,723] [builder.py:204] [INFO] | Plex Overlay in TV Shows |
[2024-05-07 02:30:18,723] [builder.py:204] [INFO] |====================================================================================================|
[2024-05-07 02:30:18,723] [builder.py:205] [INFO] | |
[2024-05-07 02:30:18,723] [builder.py:244] [INFO] |==================================== Validating Plex Attributes ====================================|
[2024-05-07 02:30:18,723] [plex.py:1055] [DEBUG] | |
[2024-05-07 02:30:18,740] [plex.py:1058] [DEBUG] | Looking for: Plex |
[2024-05-07 02:30:18,740] [overlay.py:101] [DEBUG] | |
[2024-05-07 02:30:18,740] [overlay.py:102] [DEBUG] | Validating Method: overlay |
[2024-05-07 02:30:18,740] [overlay.py:103] [DEBUG] | Value: {'name': 'plex', 'url': 'https://raw.githubusercontent.com/s0len/meta-manager-config/main/overlays/network-top-left/Plex.png', 'group': 'ICONS', 'weight': 100} |
[2024-05-07 02:30:18,851] [builder.py:968] [DEBUG] | |
[2024-05-07 02:30:18,851] [builder.py:972] [DEBUG] | Validating Method: plex_all |
[2024-05-07 02:30:18,851] [builder.py:973] [DEBUG] | Value: True |
[2024-05-07 02:30:18,851] [builder.py:1153] [INFO] | |
[2024-05-07 02:30:18,851] [builder.py:1154] [INFO] | Validation Successful |
[2024-05-07 02:30:18,851] [overlays.py:559] [INFO] | |
[2024-05-07 02:30:18,851] [overlays.py:561] [INFO] |================================= Gathering Items for Plex Overlay =================================|
[2024-05-07 02:30:18,851] [overlays.py:569] [DEBUG] | |
[2024-05-07 02:30:18,851] [overlays.py:570] [DEBUG] | Builder: plex_all: show |
[2024-05-07 02:30:18,851] [overlays.py:571] [INFO] | |
[2024-05-07 02:30:18,851] [plex.py:1130] [INFO] | Processing Plex All Shows |
[2024-05-07 02:30:18,864] [builder.py:2240] [DEBUG] | |
[2024-05-07 02:30:18,864] [builder.py:2241] [DEBUG] | 321 IDs Found |
[2024-05-07 02:30:18,864] [builder.py:2243] [DEBUG] | |
[2024-05-07 02:30:19,026] [overlays.py:591] [INFO] | 321 Items found for Overlay File (3) Plex |
[2024-05-07 02:30:19,026] [overlays.py:595] [INFO] | |
[2024-05-07 02:30:19,026] [builder.py:204] [INFO] |====================================================================================================|
[2024-05-07 02:30:19,026] [builder.py:204] [INFO] | Overlay in TV Shows |
[2024-05-07 02:30:19,026] [builder.py:204] [INFO] |====================================================================================================|
[2024-05-07 02:30:19,026] [builder.py:205] [INFO] | |
[2024-05-07 02:30:19,026] [builder.py:244] [INFO] |=================================== Validating Crave Attributes ====================================|
[2024-05-07 02:30:19,041] [plex.py:1055] [DEBUG] | |
[2024-05-07 02:30:19,041] [plex.py:1058] [DEBUG] | Looking for: Crave |
[2024-05-07 02:30:19,041] [overlay.py:101] [DEBUG] | |
[2024-05-07 02:30:19,041] [overlay.py:102] [DEBUG] | Validating Method: overlay |
[2024-05-07 02:30:19,041] [overlay.py:103] [DEBUG] | Value: {'name': 'crave', 'url': 'https://raw.githubusercontent.com/s0len/meta-manager-config/main/overlays/network-top-left/Crave.png'} |
[2024-05-07 02:30:19,216] [builder.py:968] [DEBUG] | |
[2024-05-07 02:30:19,216] [builder.py:972] [DEBUG] | Validating Method: plex_search |
[2024-05-07 02:30:19,216] [builder.py:973] [DEBUG] | Value: {'all': {'network': 'Crave'}} |
[2024-05-07 02:30:19,312] [overlays.py:601] [DEBUG] | Traceback (most recent call last): |
| File "D:\PMM\modules\builder.py", line 1938, in _plex |
| self.builders.append((method_name, self.build_filter("plex_search", dict_data))) |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| File "D:\PMM\modules\builder.py", line 2635, in build_filter |
| built_filter, filter_text = _filter(base_dict, is_all=base_all) |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| File "D:\PMM\modules\builder.py", line 2574, in _filter |
| validation = self.validate_attribute(attr, modifier, final_attr, _data, validate, plex_search=True) |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| File "D:\PMM\modules\builder.py", line 2759, in validate_attribute |
| raise FilterFailed(error) |
| modules.util.FilterFailed: Plex Error: network: Crave not found |
| |
| During handling of the above exception, another exception occurred: |
| |
| Traceback (most recent call last): |
| File "D:\PMM\modules\overlays.py", line 558, in compile_overlays |
| builder = CollectionBuilder(self.config, overlay_file, k, v, library=self.library, overlay=True) |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| File "D:\PMM\modules\builder.py", line 1050, in init |
| self._plex(method_name, method_data) |
| File "D:\PMM\modules\builder.py", line 1943, in _plex |
| raise Failed(str(e)) |
| modules.util.Failed: Plex Error: network: Crave not found |
| |
[2024-05-07 02:30:19,327] [overlays.py:602] [ERROR] | Plex Error: network: Crave not found |
[2024-05-07 02:30:19,327] [overlays.py:603] [INFO] | |
[2024-05-07 02:30:19,332] [builder.py:204] [INFO] |====================================================================================================|

TV Shows:
report_path: config/reports/TV_Shows.yml
template_variables:
use_imdb: true
use_oscars: false
use_common: false
use_rotten: false
use_metacritic: false
rating1: critic
rating1_image: trakt
rating2: audience
rating2_image: tmdb
rating3: user
rating3_image: imdb
vertical_position: bottom
collection_files:
- default: basic # This is a file within PMM's defaults folder
- default: imdb # This is a file within PMM's defaults folder
- default: streaming
# see the wiki for how to use local files, folders, URLs, or files from git
overlay_files:
- default: ribbon # This is a file within PMM's defaults folder
- default: ratings
- default: status
template_variables:
text_airing: .
url_airing: https://raw.githubusercontent.com/s0len/meta-manager-config/main/overlays/status-top-left/airing.png
text_returning: .
url_returning: https://raw.githubusercontent.com/s0len/meta-manager-config/main/overlays/status-top-left/returning.png
text_canceled: .
url_canceled: https://raw.githubusercontent.com/s0len/meta-manager-config/main/overlays/status-top-left/cancelled.png
text_ended: .
url_ended: https://raw.githubusercontent.com/s0len/meta-manager-config/main/overlays/status-top-left/ended.png
horizontal_align: left
horizontal_offset: 25
vertical_align: top
vertical_offset: 0
font_size: 1
font_color: '#00000000'
back_color: '#00000000'
back_width_airing: 1000
back_width_returning: 1000
back_width_ended: 1000
back_width_cancelled: 1000
back_width: 1000
back_height_airing: 1500
back_height_returning: 1500
back_height_ended: 1500
back_height_cancelled: 1500
back_height: 1500
back_padding: 0
back_line_width: 1000
final_horizontal_offset: 0
final_vertical_offset: 0
# Fallback Network logo which is overwritten by pmm: network if it finds an image for the network. Must run before pmm: network.
- url: https://raw.githubusercontent.com/s0len/meta-manager-config/main/overlays/network_fallback.yml

# Uses the default PMM network but replaces the image with custom ones
- default: network
  template_variables:
    horizontal_align: left
    horizontal_offset: 0
    vertical_offset: 0
    vertical_align: top
    back_width: 1000
    back_height: 1500
    url: https://raw.githubusercontent.com/s0len/meta-manager-config/main/overlays/network-top-left/<<key>>.png
    url_#0: https://raw.githubusercontent.com/s0len/meta-manager-config/main/overlays/network-top-left/%230.png
    back_color: 00
remove_overlays: false     # Set this to true to remove all overlays
reapply_overlays: false

@2wenty2wo
Copy link
Contributor

I'm also getting the same 400 error for some reason

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants