Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URL check fails for a valid installer URL #68

Open
6 tasks done
Aurocosh opened this issue Jul 20, 2024 · 0 comments
Open
6 tasks done

URL check fails for a valid installer URL #68

Aurocosh opened this issue Jul 20, 2024 · 0 comments
Labels
Bug Issues where something has happened which was not expected or intended

Comments

@Aurocosh
Copy link

Checklist

  • I confirm there are no unresolved issues reported on the Chocolatey Status page.
  • I have verified this is the correct repository for opening this issue.
  • I have verified no other issues exist related to my problem.
  • I have verified this is not an issue for a specific package.
  • I have verified this issue is not security related.
  • I confirm I am using official, and not unofficial, or modified, Chocolatey products.

What You Are Seeing?

I added automatic updates for one of my packages using the Update-Package function from au. The automatic update fails with a URL check even though the URL is valid. The package in question is InputDirector and the problematic URL is "https://inputdirector.com/downloads/InputDirector.v2.2.zip". This function works fine in all my other packages. The package InputDirector itself works properly with this url. The installer zip downloads and installs as it should. For now i fixed the auto update by disabling the URL check with NoCheckUrl argument.

What is Expected?

I expected the URL check not to fail on a valid URL.

How Did You Get This To Happen?

  1. Clone repository: https://github.com/Aurocosh/chocolatey-packages
  2. Find the folder with the InputDirector package: https://github.com/Aurocosh/chocolatey-packages/tree/master/automatic/InputDirector
  3. Edit update.ps1 and remove -NoCheckUrl argument to re enable URL check
  4. Run update.ps1

System Details

  • Operating System: Windows 10
  • Windows PowerShell version: 5.1.19041.4648
  • Chocolatey CLI Version: 2.3.0
  • Chocolatey Licensed Extension version: Chocolatey v2.3.0 0 packages installed.
  • Chocolatey License type: ?
  • Terminal/Emulator: Microsoft Terminal

Installed Packages

PS C:\Users\antyr> choco list
Chocolatey v2.3.0
au 2022.10.24
cheatengine 7.5.0
chocolatey 2.3.0
chocolatey-compatibility.extension 1.0.0
chocolatey-core.extension 1.4.0
chocolatey-windowsupdate.extension 1.0.5
cpu-z 2.9.0.20240123
cpu-z.install 2.9.0.20240123
crystaldiskinfo 9.3.2
crystaldiskinfo.portable 9.3.2
crystaldiskmark 8.0.5
dnspyex 6.4.1
dotnet 8.0.7
DotNet4.5 4.5.20120822
dotnet-8.0-desktopruntime 8.0.7
dotnet-8.0-runtime 8.0.7
dotnet-runtime 8.0.7
exiftool 12.87.0
FileOptimizer 16.70.1825
git 2.45.2
git.install 2.45.2
hashmyfiles 2.44.0
hwinfo 7.72.0
hwinfo.install 8.0.0
imageglass 9.1.6.14
imagemagick 7.1.1.3500
imagemagick.app 7.1.1.3500
innoextract 1.9.0
InputDirector 2.2.0
jbs 5.8.0.2
KB2533623 2.0.0
KB2919355 1.0.20160915
KB2919442 1.0.20160915
KB2999226 1.0.20181019
KB3033929 1.0.5
KB3035131 1.0.3
KB3063858 1.0.0
nanazip 3.0.1000
ocenaudio 3.13.8
ocenaudio.install 3.13.8
openvpn 2.6.11.2
paint.net 5.0.13
pgadmin4 8.8.0
putty.install 0.81.0
python 3.12.4
python3 3.12.4
python312 3.12.4
qbittorrent 4.6.5
ussf 1.5.0
vagrant 2.4.1
vcredist140 14.40.33810
vcredist2015 14.0.24215.20170201
veracrypt 1.26.7
vlc.install 3.0.21
wakemeonlan 1.91.0
webview2-runtime 126.0.2592.102
winmerge 2.16.40
wiztree 4.19.0
58 packages installed.

Output Log

PS D:\Projects\chocolatey-packages\automatic\InputDirector> .\update.ps1
InputDirector - checking updates using au version 2022.10.24
                                                                                                                        URL check                                                                                                               Can't validate URL                                                                                                      Exception calling "GetResponse" with "0" argument(s): "The remote server returned an error: (406) Not Acceptable.":http s://inputdirector.com/downloads/InputDirector.v2.2.zip
At C:\Program Files\WindowsPowerShell\Modules\au\Public\Update-Package.ps1:110 char:67
+ ... heck_url $url -Options $Latest.Options) { throw "${res}:$url" } else  ...
+                                               ~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (Can't validate ...rector.v2.2.zip:String) [], RuntimeException
    + FullyQualifiedErrorId : Can't validate URL
    Exception calling "GetResponse" with "0" argument(s): "The remote server returned an error: (406) Not Acceptable."
   :https://inputdirector.com/downloads/InputDirector.v2.2.zip

Additional Context

No response

@Aurocosh Aurocosh added the Bug Issues where something has happened which was not expected or intended label Jul 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Issues where something has happened which was not expected or intended
Projects
None yet
Development

No branches or pull requests

1 participant