minimalistic-wallpaper-collection icon indicating copy to clipboard operation
minimalistic-wallpaper-collection copied to clipboard

Sometimes the website does not work

Open HecurC opened this issue 1 year ago • 1 comments
trafficstars

Sometimes when i work with this i can get an error: Fatal error : Uncaught TypeError: Cannot access offset of type string on string in /var/task/user/api/index.php:228 Stack trace: #0 {main} thrown in

HecurC avatar Dec 14 '23 14:12 HecurC

It may be an issue with an unexpected response from the GitHub API.

When accessing the API, for example https://api.github.com/repositories/351656993/contents/images, it shows a list of objects which each contain "download_url" which is why it usually does not throw an error.

If that line throws an error, it probably means the format of the response from GitHub was different and it could not be parsed the usually way.

It may be a ratelimit issue or temporary server problem, but it can't be known unless the underlying error or response is logged or displayed which it currently is not.

DenverCoder1 avatar Dec 14 '23 18:12 DenverCoder1