-
Notifications
You must be signed in to change notification settings - Fork 233
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
New calendar subscription throwing 503 Service Unavailable. User agent problems? #4232
Comments
No. That ticket was about redirects. Your URL points to a service that responds with a HTTP503 error. |
Could you check with the solution/service on the other hand and find out why it errors for our user agent? Does it consider it invalid perhaps? |
If you find an acceptable user-agent that still contains |
I was testing different strings, and it looks like the server returns a 503 if the word "crawler" appears anywhere in it.
Unless it's easy enough to make that value configurable, I might reach out to the site admin to see if they can add an exception for Nextcloud.
> This issue was already raised and closed in #3546.
No. That ticket was about redirects. Your URL points to a service that responds with a HTTP503 error.
True.
|
We could indeed have a different user agent, like We could even expose some other information like some software often do |
I just tested |
Some services don't like the "crawler" inside the previous user-agent. Closes nextcloud/calendar#4232 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Some services don't like the "crawler" inside the previous user-agent. Closes nextcloud/calendar#4232 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Steps to reproduce
Expected behavior
The calendar is added. When the cronjob runs, it fetches the calendar data from the remote URL. Events show up in the calendar app
Actual behaviour
The calendar is added. When the cronjob runs, the calendar app stays empty.
This issue was already raised and closed in #3546.
The following exception is logged:
Calendar app version
3.3.1
CalDAV-clients used
No response
Browser
Firefox 99.0.1 (64-bit)
Client operating system
Solus Linux
Server operating system
Debian Linux
Web server
Nginx
Database engine version
MariaDB
PHP engine version
PHP 8.0
Nextcloud version
23.0.4
Updated from an older installed version or fresh install
Updated from an older version
List of activated apps
No response
Nextcloud configuration
No response
Web server error log
No response
Log file
No response
Browser log
No response
Additional info
I'm experiencing this same issue: I cannot add a calendar due to a 503 error. After some playing around, it looks like the user agent "Nextcloud Webcal Crawler" is causing the problem.
I have confirmed that if I use a user agent switcher and set it to "Nextcloud Webcal Crawler," I cannot download the ICS file. The same is true when using wget:
If I remove the user agent flag, it works
The user agent is hard-coded in https://github.com/nextcloud/server/blob/0bceaee444c61a613c636e8bd3579c19764f0c66/apps/dav/lib/CalDAV/WebcalCaching/RefreshWebcalService.php#L195
Is there anything I can configure on my end to make this work, or is modifying the php the only way?
The text was updated successfully, but these errors were encountered: