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

Couldn't decipher Homebrew response error #385

Open
1 task done
0n0mat0p03ia opened this issue Aug 19, 2024 · 4 comments
Open
1 task done

Couldn't decipher Homebrew response error #385

0n0mat0p03ia opened this issue Aug 19, 2024 · 4 comments
Labels
Bug Something isn't working

Comments

@0n0mat0p03ia
Copy link

What were you trying to do?

Clicked on homebrew/core and homebrew/cask taps in UI.

What was the problem?

"Couldn't decipher Homebrew response error" generated, see screenshot for details. Note: this was raised in #138 but it wasn't the focus of that issue. In #138 the suggestion was to delete homebrew and reinstall it to /opt/homebrew, which was performed.


Screenshot 2024-08-18 at 8 24 15 PM

Error logs

default	20:25:41.662323-0400	Cork	Cached downloads contents: <private>
error	20:25:41.664923-0400	Cork	Could not get proxy host
error	20:25:41.679020-0400	Cork	Couldn't find homebrew/core in local taps
error	20:25:41.679059-0400	Cork	Couldn't find homebrew/cask in local taps
default	20:25:41.944473-0400	Cork	Will attempt to place package name
error	20:25:48.876727-0400	Cork	Failed while decoding tap info: The data couldn’t be read because it is missing.
-Swift.DecodingError.keyNotFound(CodingKeys(stringValue: "formulaFiles", intValue: nil), Swift.DecodingError.Context(codingPath: [_JSONKey(stringValue: "Index 0", intValue: 0)], debugDescription: "No value associated with key CodingKeys(stringValue: \"formulaFiles\", intValue: nil) (\"formulaFiles\").", underlyingError: nil))
error	20:25:48.876854-0400	Cork	Failed while parsing package info: Cork.JSONParsingError.couldNotDecode(failureReason: "The data couldn’t be read because it is missing.")
error	20:25:49.780988-0400	Cork	There was an error decoding the outdated package retrieval output: The data couldn’t be read because it isn’t in the correct format.
Swift.DecodingError.dataCorrupted(Swift.DecodingError.Context(codingPath: [], debugDescription: "The given data was not valid JSON.", underlyingError: Optional(Error Domain=NSCocoaErrorDomain Code=3840 "Unexpected end of file" UserInfo={NSDebugDescription=Unexpected end of file})))
error	20:25:49.781111-0400	Cork	Could not decode outdated package command output: <private>
error	20:25:50.622288-0400	Cork	Failed while decoding tap info: The data couldn’t be read because it is missing.
-Swift.DecodingError.keyNotFound(CodingKeys(stringValue: "formulaFiles", intValue: nil), Swift.DecodingError.Context(codingPath: [_JSONKey(stringValue: "Index 0", intValue: 0)], debugDescription: "No value associated with key CodingKeys(stringValue: \"formulaFiles\", intValue: nil) (\"formulaFiles\").", underlyingError: nil))
error	20:25:50.622370-0400	Cork	Failed while parsing package info: Cork.JSONParsingError.couldNotDecode(failureReason: "The data couldn’t be read because it is missing.")

App Version

1.4.4

App Acquisition

Bought

Final checklist

  • This report is about the interface, and I included screenshots of the problem
@0n0mat0p03ia 0n0mat0p03ia added the Bug Something isn't working label Aug 19, 2024
@WladyX
Copy link

WladyX commented Aug 19, 2024

i have a similar issue:
CleanShot 2024-08-19 at 19 29 03@2x

@buresdv
Copy link
Owner

buresdv commented Aug 19, 2024

Try the attached executable
Cork.zip

@WladyX
Copy link

WladyX commented Aug 20, 2024

Try the attached executable Cork.zip

Works for me, thank you!

@0n0mat0p03ia
Copy link
Author

Try the attached executable Cork.zip

Does not work for me, now generates the same error as reported by @WladyX. Also realized I linked to the wrong issue in my first comment. I first reported this as part of #381 not #138.

Screenshot 2024-08-20 at 11 42 49 AM

default 11:44:18.975881-0400 Cork Cached downloads contents:
error 11:44:18.985536-0400 Cork Could not get proxy host
error 11:44:19.034787-0400 Cork Couldn't find homebrew/core in local taps
error 11:44:19.034802-0400 Cork Couldn't find homebrew/cask in local taps
default 11:44:19.298913-0400 Cork Will attempt to place package name
error 11:44:27.567744-0400 Cork Failed while decoding tap info: The data couldn’t be read because it is missing.
-Swift.DecodingError.keyNotFound(CodingKeys(stringValue: "formulaFiles", intValue: nil), Swift.DecodingError.Context(codingPath: [_JSONKey(stringValue: "Index 0", intValue: 0)], debugDescription: "No value associated with key CodingKeys(stringValue: "formulaFiles", intValue: nil) ("formulaFiles").", underlyingError: nil))
error 11:44:27.567892-0400 Cork Failed while parsing package info: Cork.JSONParsingError.couldNotDecode(failureReason: "The data couldn’t be read because it is missing.")
error 11:44:29.588289-0400 Cork Failed while decoding tap info: The data couldn’t be read because it is missing.
-Swift.DecodingError.keyNotFound(CodingKeys(stringValue: "formulaFiles", intValue: nil), Swift.DecodingError.Context(codingPath: [_JSONKey(stringValue: "Index 0", intValue: 0)], debugDescription: "No value associated with key CodingKeys(stringValue: "formulaFiles", intValue: nil) ("formulaFiles").", underlyingError: nil))
error 11:44:29.588362-0400 Cork Failed while parsing package info: Cork.JSONParsingError.couldNotDecode(failureReason: "The data couldn’t be read because it is missing.")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
Status: Ideas
Development

No branches or pull requests

3 participants