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

patch for #2781: User Agent header in doc loader #2824

Merged
merged 2 commits into from
Mar 12, 2024

Conversation

gmulhearn-anonyome
Copy link
Contributor

a patch for #2781 (see issue description). Longer term acapy may consider making a User Agent header globally for all requests, and perhaps configurable. however this one gets us by

Signed-off-by: George Mulhearn <[email protected]>
@gmulhearn-anonyome
Copy link
Contributor Author

hmmm, getting a pipeline failure; i dont know acapy CI enough to know if this normal...

@jamshale
Copy link
Contributor

jamshale commented Mar 5, 2024

hmmm, getting a pipeline failure; i dont know acapy CI enough to know if this normal...

Trying to re-run. Integration tests have been getting sporadic fails when there's multiple concurrent runs.

Copy link

sonarqubecloud bot commented Mar 7, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@@ -122,6 +123,7 @@ def download(self, url: str, options: Optional[Dict], **kwargs):
headers = options.get("headers")
if headers is None:
headers = {"Accept": "application/ld+json, application/json"}
headers["User-Agent"] = f"AriesCloudAgent/{__version__}"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pending more discussion in #2781

Copy link
Contributor

@dbluhm dbluhm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm thinking this is probably "good enough" to merge; future discussion can yield additional PRs but this will solve the immediate issue. I'd like to open another issue to capture the desire to apply User-Agent headers wherever we make outbound requests (probably just webhooks and message delivery?). I believe the integration test failure is unrelated (though a sanity check from @jamshale would be appreciated). I'm willing to merge with that one failing test.

@dbluhm dbluhm merged commit 63250d8 into openwallet-foundation:main Mar 12, 2024
7 of 8 checks passed
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

Successfully merging this pull request may close these issues.

3 participants