-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[BUG] Public Holiday Widget "Unable to fetch holiday data" #1268
Comments
If you're enjoying Dashy, consider dropping us a ⭐ |
Hi @Salan54, is the issue still persisting? If so, could you please provide the configuration details of your widget? I have tried to reproduce the issue on both the GB and PL region, but it seems to be working fine for me. |
Not the author, but pretty much same problem. Config: pageInfo:
...
appConfig:
...
sections:
- name: Today
icon: far fa-cloud-sun
displayData:
collapsed: false
hideForGuests: false
widgets:
- type: clock
options:
timeZone: Europe/Berlin
format: de-DE
id: 0_513_clock
- type: weather
options:
apiKey: efdbade728b37086877a5e83442004db
city: Berlin
id: 1_513_weather
- type: public-holidays
options:
country: DE
holidayType: all
monthsToShow: 6
state: SH
id: 2_513_publicholidays This results in the following query to the Api: It returns 200 just fine... but the UI still states This config worked for months and I can't find whats wrong. And yes I checked the docs. |
Update: An update that this is now working for me. Not sure what the issue was when I reloaded the config the next day it started working. I am also having the same issue with my widget. Below is my widget config
|
Sorry for the delay.
Initially, country was FR, I switched to US to see if that changes something but to no avail. |
I was having this problem, after looking what is causing I inserted a new option "lang" and this fixed for me. The widget goes through all days, check if it has the lang of user, but "this.option.lang" return undefined and crashes the widget. Inserting an option with your lang or the lang that return in the request solve this error. More info: The line that has the error is line 96.
|
Thanks @Polskovisk I modified the line with the missing ? as you stated and added a 'lang' option in my config but I still have the same error : "Unable to fetch holiday data". My config :
|
Try to put lang in lowercase and see if this fix. If you fixed the code that I talked about earlier, you can remove lang entirely If not, then i gonna need more information, maybe your web console can show more details of the error. |
Bingo !!! I changed "lang" (and "country") to lowercase : "fr" and it works. |
Thanks, i had the same issue and could fix it. I used the restrict a country to a specific state string. The string was when I set up dashy "region". Now it seems to be "state". Changing that and put everything in lower case fixed it for me. The docs still show under example "region" instead of "state" when I get it right. |
i managed to fix this issue by just removing the state line entirely, nothing i put in there managed to work lowercase or uppercase. "lnd" was what i tried which was in the docs.
Is working, in case anyone wants an example. |
Thanks, lang: en worked for me :) |
The fix for this issue has now been released in 2.1.2 ✨ If you haven't done so already, please update your instance to Feel free to reach out if you need any more support. If you are enjoying Dashy, consider supporting the project. |
Environment
Self-Hosted (Docker)
System
Docker version 24.0.4, build 3713ee1
Version
2.1.1
Describe the problem
Was working till a few weeks ago. But now, the public holiday widget failed with :
An error occurred, see the logs for more info.
Unable to fetch holiday data
Retry
I tried to change the country from FR to US, but to no avail.
I have the Cryptocurrencies widget in my config, and this one works perfectly...
Thanks for your help.
Additional info
No response
Please tick the boxes
The text was updated successfully, but these errors were encountered: