Fluidd/Mainsail Download URL Parsing Failure #281

Closed
opened 2023-01-06 02:31:53 +01:00 by LongDono · 3 comments
LongDono commented 2023-01-06 02:31:53 +01:00 (Migrated from github.com)

Linux Distribution

Ubuntu Server 22.04.1 LTS

What happened

The Fluidd download URL parser is failing, preventing installation of Fluidd. I suspect it is because the API limit has been exceeded. I looked through the code and found the URL it was using to try to identify releases and entered it manually:

{"message":"API rate limit exceeded for 38.20.250.13. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting"}

What did you expect to happen

Download URL to be parsed correctly or if not solvable, a message indicating what the issue is

How to reproduce

Usual installation steps

Additional information

Downloading Fluidd from https://github.com/fluidd-core/fluidd/releases/download//fluidd.zip ...

--2023-01-05 19:45:25-- https://github.com/fluidd-core/fluidd/releases/download//fluidd.zip
Resolving github.com (github.com)... 140.82.112.4
Connecting to github.com (github.com)|140.82.112.4|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2023-01-05 19:45:26 ERROR 404: Not Found.

#=======================================================#
Downloading Fluidd from
https://github.com/fluidd-core/fluidd/releases/download//fluidd.zip
failed!
#=======================================================#

### Linux Distribution Ubuntu Server 22.04.1 LTS ### What happened The Fluidd download URL parser is failing, preventing installation of Fluidd. I suspect it is because the API limit has been exceeded. I looked through the code and found the URL it was using to try to identify releases and entered it manually: {"message":"API rate limit exceeded for 38.20.250.13. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting"} ### What did you expect to happen Download URL to be parsed correctly or if not solvable, a message indicating what the issue is ### How to reproduce Usual installation steps ### Additional information ###### Downloading Fluidd from https://github.com/fluidd-core/fluidd/releases/download//fluidd.zip ... --2023-01-05 19:45:25-- https://github.com/fluidd-core/fluidd/releases/download//fluidd.zip Resolving github.com (github.com)... 140.82.112.4 Connecting to github.com (github.com)|140.82.112.4|:443... connected. HTTP request sent, awaiting response... 404 Not Found 2023-01-05 19:45:26 ERROR 404: Not Found. #=======================================================# Downloading Fluidd from https://github.com/fluidd-core/fluidd/releases/download//fluidd.zip failed! #=======================================================#
wilsongis commented 2023-01-11 19:31:41 +01:00 (Migrated from github.com)

I got the same with both fluidd and mainsail.

I got the same with both fluidd and mainsail.
wilsongis commented 2023-02-05 17:53:11 +01:00 (Migrated from github.com)

I added this to both download functions for mainsail and fluid. It looks like the scripts don't always get the tag for fluidd or mainsail. I am not exactly sure why. I updated my scripts to download a version (current as of today) in cases where it can't find the tag. I rather have something rather than nothing. It is a hack job.

function download_fluidd() {
  local url
  local badurl
  badurl="https://github.com/fluidd-core/fluidd/releases/download//fluidd.zip"
  url=$(get_fluidd_download_url)
  if [ $url==$badurl ]
  then
    url="https://github.com/fluidd-core/fluidd/releases/download/v1.23.1/fluidd.zip"
  else
    url=$(get_fluidd_download_url)
  fi
  status_msg "Downloading Fluidd from ${url} ..."
function download_mainsail() {
  local url
  local badurl
  badurl="https://github.com/mainsail-crew/mainsail/releases/download//mainsail.zip"
  url=$(get_mainsail_download_url)
  if [ $badurl == $url ]
  then
    url="https://github.com/mainsail-crew/mainsail/releases/download/v2.4.1/mainsail.zip"
  else
    url=$(get_mainsail_download_url)
  fi
  status_msg "Downloading Mainsail from ${url} ..."
I added this to both download functions for mainsail and fluid. It looks like the scripts don't always get the tag for fluidd or mainsail. I am not exactly sure why. I updated my scripts to download a version (current as of today) in cases where it can't find the tag. I rather have something rather than nothing. It is a hack job. ``` function download_fluidd() { local url local badurl badurl="https://github.com/fluidd-core/fluidd/releases/download//fluidd.zip" url=$(get_fluidd_download_url) if [ $url==$badurl ] then url="https://github.com/fluidd-core/fluidd/releases/download/v1.23.1/fluidd.zip" else url=$(get_fluidd_download_url) fi status_msg "Downloading Fluidd from ${url} ..." ``` ``` function download_mainsail() { local url local badurl badurl="https://github.com/mainsail-crew/mainsail/releases/download//mainsail.zip" url=$(get_mainsail_download_url) if [ $badurl == $url ] then url="https://github.com/mainsail-crew/mainsail/releases/download/v2.4.1/mainsail.zip" else url=$(get_mainsail_download_url) fi status_msg "Downloading Mainsail from ${url} ..." ```
Tron842 commented 2023-03-02 02:46:51 +01:00 (Migrated from github.com)

I had the same issue, and it turned out to be the CA store needing to be updated. You can test if you have the same problem by running the following command.

curl "https://api.github.com/repos/mainsail-crew/mainsail/releases/latest"

If you get a 'curl: (60) SSL certificate problem: unable to get local issuer certificate' error, it is probably that. I was able to update my CA store with the following commands:

cd ~
curl "https://curl.se/ca/cacert.pem" -k > cacert.pem
sudo mv ./cacert.pem /usr/local/share/ca-certificates/certificate.crt
sudo dpkg-reconfigure ca-certificates

Hopefully, this helps.

I had the same issue, and it turned out to be the CA store needing to be updated. You can test if you have the same problem by running the following command. `curl "https://api.github.com/repos/mainsail-crew/mainsail/releases/latest"` If you get a 'curl: (60) SSL certificate problem: unable to get local issuer certificate' error, it is probably that. I was able to update my CA store with the following commands: ``` cd ~ curl "https://curl.se/ca/cacert.pem" -k > cacert.pem sudo mv ./cacert.pem /usr/local/share/ca-certificates/certificate.crt sudo dpkg-reconfigure ca-certificates ``` Hopefully, this helps.
Sign in to join this conversation.