Could not connect to appstore: cURL error 28: Operation timed out after 60001 milliseconds

Upon a fresh install of NextcloudPi in a docker container using the dockerhub image and successful installation, I am getting this error in the logs when accessing the apps page:

Could not connect to appstore: cURL error 28: Operation timed out after 60001 milliseconds with 0 out of 0 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://apps.nextcloud.com/api/v1/apps.json

I have looked into this and I have tried setting it to a higher value and removing the condition as mentioned in the post but it doesn’t work. I have UFW enabled outside docker, however all outgoing connections are allowed. I don’t think the firewall is the issue.