raspberrypi / documentation

The official documentation for Raspberry Pi computers and microcontrollers

Home Page:https://raspberrypi.com/documentation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failure to build: 403 (Forbidden) from sass-embedded gemfile using bundle

MicrosoftWorks opened this issue · comments

Error when using bundle, RPiOS, RPi 5:

Bundler::HTTPError:Could not download gem from https://rubygems.org/ due to underlying error <bad response Forbidden 403 ([https://rubygems.org/gems/sass-embedded ... -linux.gem](https://rubygems.org/gems/sass-embedded-1.72.0-aarch64-linux.gem))>

Quoted from a user with the same issue on the forums, https://forums.raspberrypi.com/viewtopic.php?t=368347

which looks like an error on rubygems.org.
However, I've successfully installed sass-embedded from as described here https://rubygems.org/gems/sass-embedded.
Has anyone else experienced this? Suggestions?

The issue seems to be related to bundler not adding the proper suffix to the link, https://rubygems.org/gems/sass-embedded-1.72.0-aarch64-linux.gem wherein rubygems.org an additional descriptor needs to be added after, ...aarch64-linux [here].gemi.e. https://rubygems.org/gems/sass-embedded-1.69.5-aarch64-linux-gnu.gem which actually provides a gem.

I'll be happy to provide any additional info.

Can confirm. I'm having the same issue as described by OP. I'm building in a docker container from image debian:latest and hit by the same error message.

Edit: My temporary solution to this issue is change the platform of docker image to linux/arm64 in order to temporary get around the bundle install issue.

Edit2: Seems like even after change the platform, the issue still persists. I'm getting error below:

Bundler::HTTPError: Could not download gem from https://rubygems.org/ due to underlying error <bad response Forbidden 403 (https://rubygems.org/gems/sass-embedded-1.75.0-aarch64-linux.gem)>

Sound like issue from ruby's end?