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

ZERO Install XML Feed file read error #198

Open
niranjancareio opened this issue Aug 7, 2023 · 1 comment
Open

ZERO Install XML Feed file read error #198

niranjancareio opened this issue Aug 7, 2023 · 1 comment

Comments

@niranjancareio
Copy link

Hi
I am facing an issue "input stream closed, unable to get user input" when try to read XML feed file using below code
selections = Solver.Solve(requirements);
My XML feed file is on Azure
If I keep XML feed file on local machine it executes above statement without any error.
Please suggest.

Note: I was able to read file and get selections earlier with same code. Recently I have added few setups in my installer so I wanted to have new Feed XML using which I can download new dependancies.

@bastianeicher bastianeicher transferred this issue from 0install/0install-win Aug 7, 2023
@bastianeicher
Copy link
Member

When using a local file path for a feed, Zero Install does not check for signatures. But when using an HTTP(S) URL, the feed needs to be signed and the user needs to trust the signature’s key.

The message “input stream closed, unable to get user input” indicates that Zero Install tried to ask the user via the terminal whether they want tot trust the key but failed, probably because the app was running in a non-interactive environment like a CI sever.

You can also trust a key in code like this to avoid the user prompt:

var services = new ServiceProvider();
services.TrustDB.TrustKey("ABC123", new Domain("example.com"));
services.TrustDB.Save();
var selections = services.Solver.Solve(requirements);

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