Closed junpet closed 4 years ago
This has nothing to do with single quotes. The quotes are not required in yaml so when converting from json to yaml, they won't be rendered.
Do you mind posting your full config? Do you have variables: variables.yml
at the top of the file?
Also this is the same issue as the one you posted over on main repo https://github.com/Flexget/Flexget/issues/2592. So closing this as duplicate.
This is not the same issue, as you can read both of issues. I can't add the variables: variables.yml
line to my config, because v1
won't save (YAML Error
), and v2
won't save the config.yml
either. I've already wrote on the other repo as well. The problem is not in my config.yml
. I've a working config for months. After inserting the one specific line I can't save it.
Again, this and the other issue is different. This issue happens only with v2
. Please read my first post carefully again and open the issue. The other issue I've opened on the main repo is a problem with numbers, and associated with both v1
and v2
. That's why I've opened that there, because I think that's not associated with the webui, but its just a guess. Sorry for taking my time and reporting these issues, I'm trying my best.
Hi. I think you are misunderstanding. Based on the log of the errors, the root cause of both issues is likely to be the same. So to not fragment discussion, I want to close this issue so we can figure out what is causing both issues, over in main repo. It's either an issue with your config or an issue with the API. And if ends up being something separate, we can reopen this one)
And just to reiterate, the single quotes thing is not an issue,
gotify:
token: mytoken
url: 'https://mydomain.org'
is the exact same as
gotify:
token: mytoken
url: https://mydomain.org
The API converts json to yaml to display it and then yam to json to save it. So both results when you refresh will be without the single quotes.
As you can read in the Variable documentation: Use singles quotes around URLs
I believe in you, I just followed the documentation. And if I don't follow it, I got an error in v2
.
If I'd like to use an url (which was saved without '
) in the v2
, I got an error.
I can save variables with v1
and getting back properly, I don't get any error.
Expected behaviour:
Save variable url with folding
'
character (as suggested in the documentation). This works inv1
.Actual behaviour:
You can't save a variable with
'
characters folding it. The variables won't be saved.Steps to reproduce:
'
character.'
characters will be removed. Using the variable like this will generate aCRITICAL
:[/templates/gotify/notify/entries/via/0/gotify/url] '{? gotify.url ?}' is not a 'url'
Config:
variables
config
Screenshots:
Log:
(click to expand)
``` [/templates/gotify/notify/entries/via/0/gotify/url] '{? gotify.url ?}' is not a 'url' ```Additional information: