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

Uncaught PHP Exception TypeError: "Packeton\Service\DistConfig::getFileName() #174

Closed
mikk150 opened this issue Sep 27, 2023 · 1 comment

Comments

@mikk150
Copy link

mikk150 commented Sep 27, 2023

Description

request.CRITICAL: Uncaught PHP Exception TypeError: "Packeton\Service\DistConfig::getFileName(): Argument #2 ($version) must be of type string, null given, called in /app/src/Service/DistManager.php on line 200" at /app/src/Service/DistConfig.php line 85 {"exception":"[object] (TypeError(code: 0): Packeton\\Service\\DistConfig::getFileName(): Argument #2 ($version) must be of type string, null given, called in /app/src/Service/DistManager.php on line 200 at /app/src/Service/DistConfig.php:85)"} []
  1. https://github.com/vtsykun/packeton/blob/master/src/Service/DistManager.php#L191 $versionName could be null
  2. https://github.com/vtsykun/packeton/blob/master/src/Service/DistManager.php#L200 can pass null on
  3. https://github.com/vtsykun/packeton/blob/master/src/Service/DistConfig.php#L85 requires $version to exist
    Boom 💥

Can you reproduce the bug on the Packeton demo site?

None

Database

MySQL

Screenshots

No response

How are you running Packeton?

In kubernetes

@vtsykun
Copy link
Owner

vtsykun commented Sep 27, 2023

Fixed #175

@vtsykun vtsykun closed this as completed Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants