foojayio / discoapi

The foojay discovery api (discoapi) is made to discover java packages (jre/jdk) from different distributions.
GNU General Public License v2.0
111 stars 13 forks source link

Gateway timeout while accessing https://api.foojay.io/disco/v1.0/packages #43

Closed khmarbaise closed 2 years ago

khmarbaise commented 2 years ago

Stumbled upon a timeout error:

=== RUN   Test_Main_DifferentCommands/packages
    main_test.go:217: 

        errorous execution
        exit status 2
         stdout: ---------------------
        URL: https://api.foojay.io/disco/v1.0/packages

        stderr:--------------------
        Status Code: 504 Gateway Timeout
HanSolo commented 2 years ago

Yep...I saw that too and the reason is that it pulls all packages in v1. In Version v2 it should work faster because it is cached. Did you try https://api.foojay.io/disco/v2.0/packages ?

khmarbaise commented 2 years ago

Not yet. But I will give it a try.

HanSolo commented 2 years ago

Should be fixed, otherwise please re-ope