It search only small parameter area when using pruning.

I encounted a problem of similar parameter on many trial when I'm using pruning.
I can not original code but I made similar case toy script bellow.
import optuna

count = 0

def objective(trial: optuna.Trial):
    global count
    a = trial.suggest_uniform('a', 0, 1)
    b = trial.suggest_uniform('b', 0, 1)

    print(a, b)

    if count > 10:
        raise optuna.structs.TrialPruned('pruned!')

    count += 1
    return 1

if __name__ == '__main__':
    study = optuna.create_study()
    study.optimize(objective, 100)

It running that output. (sorry)
0.9193297609499109 0.2951020724586255
[I 2018-12-12 22:41:26,449] Finished a trial resulted in value: 1.0. Current best value is 1.0 with parameters: {'a': 0.9193297609499109, 'b': 0.2951020724586255}.
0.07133285126371469 0.7913286482928995
[I 2018-12-12 22:41:26,660] Finished a trial resulted in value: 1.0. Current best value is 1.0 with parameters: {'a': 0.9193297609499109, 'b': 0.2951020724586255}.
0.18891975710874032 0.5979379868952668
[I 2018-12-12 22:41:26,870] Finished a trial resulted in value: 1.0. Current best value is 1.0 with parameters: {'a': 0.9193297609499109, 'b': 0.2951020724586255}.
0.4037803166887389 0.5556959131058304
[I 2018-12-12 22:41:27,081] Finished a trial resulted in value: 1.0. Current best value is 1.0 with parameters: {'a': 0.9193297609499109, 'b': 0.2951020724586255}.
0.5486918451302252 0.008951124018864665
[I 2018-12-12 22:41:27,290] Finished a trial resulted in value: 1.0. Current best value is 1.0 with parameters: {'a': 0.9193297609499109, 'b': 0.2951020724586255}.
0.22330875913552062 0.14336088783151546
[I 2018-12-12 22:41:27,497] Finished a trial resulted in value: 1.0. Current best value is 1.0 with parameters: {'a': 0.9193297609499109, 'b': 0.2951020724586255}.
0.2873568183345594 0.4439617700115277
[I 2018-12-12 22:41:27,708] Finished a trial resulted in value: 1.0. Current best value is 1.0 with parameters: {'a': 0.9193297609499109, 'b': 0.2951020724586255}.
0.5538432424257924 0.2169753830498714
[I 2018-12-12 22:41:27,919] Finished a trial resulted in value: 1.0. Current best value is 1.0 with parameters: {'a': 0.9193297609499109, 'b': 0.2951020724586255}.
0.5127323722154805 0.5340531117541805
[I 2018-12-12 22:41:28,129] Finished a trial resulted in value: 1.0. Current best value is 1.0 with parameters: {'a': 0.9193297609499109, 'b': 0.2951020724586255}.
0.7841730503441033 0.2835078605459713
[I 2018-12-12 22:41:28,336] Finished a trial resulted in value: 1.0. Current best value is 1.0 with parameters: {'a': 0.9193297609499109, 'b': 0.2951020724586255}.
0.9546588242819174 0.16202682451250522
[I 2018-12-12 22:41:28,543] Finished a trial resulted in value: 1.0.

I think that it seems that the last one repeats the similar parameter.
Does anyone have insight on this problem?
Or Is this the expected behavior?

This code is patching to optuna / storages / base.py now.
    def get_trial_param_result_pairs(self, study_id, param_name):
        # type: (int, str) -> List[Tuple[float, float]]

        # Be careful: this method returns param values in internal representation
        all_trials = self.get_all_trials(study_id)

        return [
            (t.params_in_internal_repr[param_name], t.value)
            for t in all_trials
            if (t.value is not None and
                param_name in t.params and
                t.state in [structs.TrialState.COMPLETE, structs.TrialState.PRUNED])
            # TODO(Akiba): We also want to use pruned results
        ]

It works as I intended but I don't know this is good way.

Thank you for reporting this issue.
This is a known problem within our team. The combination of TPE and pruning sometimes poorly works, as distribution update is trapped by the pruning mechanism. This might be improved a bit at the today's release (if you are interested in the details, please see #268 and #261).
Your patch would be a candidate of the solution, but it may cause some problems, e.g., the parameters suggested to the pruned trials are underestimated by TPE. What is the best solution is under consideration, and we will address it in the future.
For a workaround, you can also try RandomSampler when your task is suffered by this problem.

@sile
Thank you for response.
I checked again with new version, It is improved this issue.
Thank you.

@higumachan FYI This problem was completely solved by #439.


Add a RISC-V GCC 8.2.0 Compiler

I'm not actually sure how this all works, so as a result I've given it
no testing aside from having built a crosstool-ng based toolchain for
RISC-V on my local machine (which is where I got the config).
Signed-off-by: Palmer Dabbelt<EMAIL_ADDRESS>

I don't have root on the fast machines so I didn't run the script that touches /opt.  LMK if you want me to give it a shot on my laptap, but it might take a while...

Thanks for this! I'll merge and see if I can get this working and add it to build_cross_compilers.sh too!

Awesome!  I have no idea how this works in terms of integration into compile-explorer, but if you have any questions about the toolchain stuff I can try to answer them.

Thanks @palmer-dabbelt :) I'm hoping it'll all just come out in the wash shortly...mostly it's dreadful bash script hackery to get it in.


Add configuration option to deserialize binary protobuf encoded message keys

First off, Kafka UI is great, thanks for maintaining it!
I noticed this TODO in ProtobufFileRecordSerDe:
//TODO: currently we assume that keys for this serde are always string - need to discuss if it is ok

I think it would be nice to provide the ability to deserialize binary protobuf encoded message keys in addition to message values. To support this, I think a new configuration value such as Map<String, String> protobufMessageNameByTopicForKey could be added (open to suggestions here). In terms of how a message key is deserialized when using ProtobufFileRecordSerDe I feel this precedence order would make sense:

If the protobuf message name is found in protobufMessageNameByTopicForKey deserialize the message key using a descriptor.
Else, deserialize the message key as a string.

Happy to make a PR for this (I've been playing around with the code and doesn't seem like it would be terribly difficult to add), but wanted to discuss if adding such a configuration makes sense

Hey, thanks for reaching out! Glad you like it.
Let's discuss and we'll see about the PR.
@iliax, what do you think?

I am ok with this. Will be happy to review PR, @jdechicchis

@iliax @Haarolean Made a PR #1729. Would appreciate a review. I noticed that there didn't seem to be much documentation on how to use protobuf files with Kafka UI (maybe I missed it). I'm happy to document this change better if desired

@jdechicchis hey, yeah, unfortunately there's not much documentation for this. Would appreciate any documentation improvements.

@jdechicchis would be cool! The same PR is fine, the path is okay as well.

Updated the PR with some docs


docs: update developers_dev.md

Signed-off-by: bitliu<EMAIL_ADDRESS>

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


feat(proto, core, sequencer)!: permit bech32 compatible addresses

Summary
Enables bech32 compatible addresses when necessary.
Background
Some IBC enabled chains enforce that ics20 transfer packets must contain bech32 compatible only (see https://github.com/astriaorg/astria/issues/1407 for more background). This patch adds a ibc_compat prefix to sequencer's genesis and a new field bool Ics20Withdrawal.use_compat_address to the withdrawal action to request a bech32 compatible address format when interacting with such chains.
Changes

Add field astria.protocol.transactions.v1alpha1.Ics20Withdrawal.use_compat_address
Add field astria.protocol.genesis.v1alpha1.AddressPrefixes.ibc_compat
Rewrite the Address domain type to be generic over the format; this allows bech32 and bech32m addresses when parsing and formatting

Note that all Astria domain types containing addresses now require Address<Bech32m> with Bech32m also being set as the default type is the parameter is absent

this now enforces that all Astria addresses in Astria's domain types must be bech32m compatible (this was not enforced before because bech32::decode does not enforce either checksum as of bech32@v0.11).
When executing an astria.protocol.transactions.v1alpha1.Ics20Withdrawal with field use_compat_address == true, sequencer will now construct a bech32 compatible address using the value stored at prefixes/ibc-compat in its state.
When refunding a rollup due to a failed withdrawal, sequencer will now attempt to parse the sender as either a standard (non-compat) bech32m address, or a compat bech32 address.
If a compat bech32 address was found during a refund, sequencer will convert it to a bech32m address with its base prefix for further processing. This ensures that the compat addresses are only ever constructed for outgoing and incoming fungible token packets.

Testing

Updated sequencer tests for ics20 refunds for both compat and base/non-compat senders.
Updated all snapshot tests
Added a snapshot test for Address<Bech32>
Added unit tests for address parsing (to ensure that bech32 addresses cannot be parsaed as bech32m and vice versa)
Updated chart sequencer genesis to run smoke tests
IBC tests for noble are still work in progress and outside the scope of this PR.

Breaking Changelist

Sequencer gained a new genesis value (the ibc compat prefix), changing the app hash

Related Issues
Closes https://github.com/astriaorg/astria/issues/1407

Squashed and rebased ontop of recent main because of merge conflicts.


How to install Brackets on Linux (Ubuntu)

Brackets is a modern text editor that makes it easy to design in the browser.
Brackets is available on Linux since R1.11 (brackets#619) but I couldn't find a tutorial on how to install it on say Ubuntu.

To install brackets on ubuntu I've used that and it worked perfectly. Brackets has binaries available for Debian based distributions. There is also a PPA by Webupd8 team.
sudo add-apt-repository ppa:webupd8team/brackets
sudo apt-get update
sudo apt-get install brackets

For your libgcrypt problem, you may try manually from another repository as mentionned here:
command wget http://ftp.acc.umu.se/mirror/cdimage/snapshot/Debian/pool/main/libg/libgcrypt11/libgcrypt11_1.5.4-3_amd64.deb
command dpkg -i libgcrypt11_1.5.4-3_amd64.deb

and then start again with the brackets installation
command dpkg -i Brackets.1.3.Extract.64-bit.deb


[Feature suggestion] A way to chain/pipe validations

Hello,
First of all, thank you for making and maintaining this awesome library.
I started using zod to validate forms on a frontend project, and found myself doing things like:
const FormData = z.object({
  age: z.string().transform((x, ctx) => {
    const value = parseInt(x)
    if (isNaN(value) || value < 0) {
      ctx.addIssue({code: z.ZodIssueCode.custom, message: 'should be a positif integer'})
      return z.NEVER
    }
    return value
  }),
  worked_days_in_month: z.string().transform((x, ctx) => {
    const value = parseInt(x)
    if (isNaN(value) || value < 0 || value > 31) {
      ctx.addIssue({code: z.ZodIssueCode.custom, message: 'should be an integer between 1 and 31'})
      return z.NEVER
    }
    return value
  }),
})

Since all values coming from the HTML inputs are strings, I have to validate them using z.string then use .transform to convert them to numbers and do additional validation.
I think it will be easier if after converting them to numbers, I could chain them to a z.number with some additional checks, something like:
const FormData = z.object({
  age: z.string().transform(x => parseInt(x)).chain(z.number().int().min(0)),
  worked_days_in_month: z.string().transform(x => parseInt(x)).chain(z.number().int().min(0).max(31)),
})

So my suggestion is to add a method .chain (or .pipe or other name ...) that behaves as follows:
const a: ZodType // with types: _input = A and _output = B
const b: ZodType // with types: _input = B and _output = C

const c = a.chain(b) // gives a ZodType with _input = A and _output = C

Let me know if this is something you would be interested in adding to the library, I can try to make a PR for it if you agree.

You could use preprocess()?
Something like this:
const stringToNumber = (arg: unknown) =>
  typeof arg === 'string' && Number(arg) !== NaN ? Number(arg) : arg;

const FormData = z.object({
  age: z.preprocess(stringToNumber, z.number().int().min(0)),
  worked_days_in_month: z.preprocess(stringToNumber, z.number().int().min(0).max(31))
})

Personally, I am not a fan of the preprocess style.

You can't compose parsers, you have to write your own, "not-zod"-logic to make it work.
You have to nest, essentially, callbacks. z.preprocess(z.preprocess(z.preprocess(customFoo, foo), bar), qux). Not very elegant.

I prefer https://github.com/colinhacks/zod#validating-during-transform, though its also sub-optimal, and shares some of the same issues.
I believe the thing "preventing" us from having "proper" chaining is that Zod parsers aren't Functors / Monads. In a different world, you would have something like io-ts, where you can do a.chain(b).chain(c), where a, b and c are all parsers. I think that was discussed in a prior issue though, so I'm pretty sure the library authors are aware of this option :)

tbh if you need to do that many nests you're probably overcomplicating your Zod type. Just my 2c.

tbh if you need to do that many nests you're probably overcomplicating your Zod type. Just my 2c.

Fair enough, though this type of composition is fundamental in functional programming, and since zod was explicitly inspired by io-ts (a library where this kind of composition is built-in), it isn't far-fetched to expect this kind of API.

Looks like pipe is now built-in and should resolve this issue :)
z.string()
  .transform(val => val.length)
  .pipe(z.number().min(5))

@timm-stelzer-e-farm you're right, I will close this issue.
Thanks @samchungy and @timm-stelzer-e-farm for the valuable discussion, sorry I couldn't be more active in this thread.


Plot_inliers / File adapted to changes in the whole project

The project was further developed without following the changes to the interfaces in this file. This PR now handles this.

Hi @kielnino ,
Yes, seems unrelated. I'll try to land this PR.


No more raw image requests

Instead of the raw requests, blobs are added in order to show images without compromising the backend Route API

Instead of the raw requests, blobs are added in order to show images without compromising the backend Route API


remove some notes

The following regexp should be removed from the notes:

tbrc holds digitally scanned images, tiffs and pdf files\s*
; scanned for preservation purposes? only; not for distribution\s*

(that should remove some of them)

linked to https://github.com/buda-base/library-issues/issues/275


Move eligibility gating to be on main program settings page

Description
Please explain the changes you made here.
Release notes
The title of the pull request will be used as the default release notes description. If more detail is needed to communicate to partners the scope of the PR's changes, use this release notes section.
Checklist
General
Read the full guidelines for PRs here

[ ] Added the correct label: < feature | enhancement | bug | under-development | dependencies | infrastructure | ignore-for-release | database >
[ ] Assigned to a specific person, civiform/developers, or a more specific round-robin list
[ ] Added an additional reviewer from outside your organization as FYI (if the primary reviewer is in the same organization as you)
[ ] Created unit and/or browser tests which fail without the change (if possible)
[ ] Performed manual testing (Chrome and Firefox if it includes front-end changes)
[ ] Extended the README / documentation, if necessary

Database evolutions
Read the guidelines here

[ ] Assigned two reviewers
[ ] Guarded against already existing resources using IF NOT EXISTS and IF EXISTS
[ ] Downs created to undo changes in Ups

User visible changes

[ ] Followed steps to internationalize new strings

[ ] Added context strings to new messages
[ ] Didn't use a message in applicant facing code that isn't translated yet (unless behind a flag)

[ ] Wrote browser tests using the validateAccessibility method
[ ] Tested on mobile view. See mobile device mode
[ ] Manually tested at 200% size
[ ] Manually evaluated tab order

New Features

[ ] Add new FeatureFlag env vars to server/conf/helper/feature-flags.conf
[ ] Conditioned new functionality on a FeatureFlag
[ ] Wrote browser tests with the feature flag off and on, etc.

Instructions for manual testing
If instructions are needed for manual testing by reviewers, include them here.
Issue(s) this completes
Fixes #<issue_number>; Fixes #<issue_number>...

#6950  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @caitlinshk and the rest of your teammates on  Graphite

Note: I updated browser-test/image_snapshots/admin_program_creation_test/program-creation-page.png to use new wording but not the rest of them -- will only update once I get the okay from Sijia.

@caitlinshk The radio buttons looks great.
Suggest rewording, just trying to frame it with more actionable wording:

Only allow residents to submit applications if they meet all eligibility requirements
Allow residents to submit applications even if they don't meet eligibility requirements


Error if HMR results in negative particle mass

Description
Resolves #1061
Checklist

[x] Add tests
[x] Lint
[x] Update docstrings

Good catch - I'll make it easy on myself and forbid zero mass. If somebody wants it ... well, they can make the case for it


added special treatment for Netflix

Fixes #20
I had to add a second content script to inject netflix.js into the page header. This was necessary, as content scripts can't normally interact with window variables, so window.netflix was unavailable.
Tested in Chrome and Firefox.

Nvm, doesn't reliably work with Firefox. Might PR again later

I have now switched from CustomEvents to window.postMessage and it now also works in Firefox.

I don't have Netflix myself to test it, but those changes don't affect other websites and seems Netflix didn't work before, so I merge it.


Styles and Scripts don't load

The reason for this is that router.js handles incoming requests for websites but not for their components (.js and .css files)

Fixed with new approach found in /src/router/fileshare.js


Revert to dev.63 SDK

runtime SDK is back at dev.63
we download a separately tracked tool-env SDK for analyzer/dartdoc during docker image creation, set currently to dev.69
tracking the two SDK separately, adjusted tests

/cc @sortie

I assume you were running a Dart 1 analyzer on the transitive code to ensure it's Dart 1 compatible?

Yes, although I missed the pkg/_popularity library, fixed it. Also fixed dartfmt formatting.

Thanks, @isoos . Then go ahead and merge it, when it's ready. I'll make a new deployment afterwards.


Add automated Language checks + Sample Notebook

Description
#13
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[X] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[X] This change requires a documentation update
[ ] Documentation update

Hello @HarshCasper! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file metacall_jupyter/kernel.py:

Line 51:80: E501 line too long (81 > 79 characters)
Line 54:80: E501 line too long (88 > 79 characters)
Line 65:80: E501 line too long (96 > 79 characters)
Line 73:80: E501 line too long (105 > 79 characters)
Line 74:80: E501 line too long (80 > 79 characters)

In the file setup.py:

Line 16:80: E501 line too long (89 > 79 characters)

Hello @HarshCasper! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file metacall_jupyter/kernel.py:

Line 51:80: E501 line too long (81 > 79 characters)
Line 54:80: E501 line too long (88 > 79 characters)
Line 65:80: E501 line too long (96 > 79 characters)
Line 73:80: E501 line too long (83 > 79 characters)
Line 74:80: E501 line too long (82 > 79 characters)

In the file setup.py:

Line 16:80: E501 line too long (89 > 79 characters)

Hello @HarshCasper! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file metacall_jupyter/kernel.py:

Line 51:80: E501 line too long (81 > 79 characters)
Line 54:80: E501 line too long (88 > 79 characters)
Line 65:80: E501 line too long (96 > 79 characters)
Line 73:80: E501 line too long (83 > 79 characters)
Line 74:80: E501 line too long (82 > 79 characters)

In the file setup.py:

Line 16:80: E501 line too long (89 > 79 characters)


Case insensitive search

Hi,
How could we get a case-insensitive search/filter on a string column? Something that would return the same lines if filtering for "Pennsylvania" or "pennsylvania" in the oscars table of the demo page?
Thanks!

This would be something we would need to change in general I think. I think a case insensitive search does have more advantages over disadvantages right?
https://github.com/datavzrd/datavzrd/blob/3dcae39f3b124efde5cbe4fa676dc41aa137945d/web/src/datavzrd.js#L1101
would need to be altered to
if (checkbox_filters[title].toLowerCase().includes(row[title.toLowerCase()])) {

@johanneskoester Your thoughts on this?


[Turbo] Support for broadcasting page refreshes

Hi,
Turbo 8 added a feature: Broadcasting page refreshes. Currently, it is unfortunately not possible to use it with Symfony. This will greatly simplify the code, and you won't have to worry so much about <turbo-stream>.
I put this article to accompany this issue: https://dev.37signals.com/page-refreshes-with-morphing-demo/
What do you think ?

Hi ! i'm also looking for this feature with Symfony
do you have a workaround until the feature is added to S.Turbo ?

Hi ! i'm also looking for this feature with Symfony
do you have a workaround until the feature is added to S.Turbo ?

TurboStream helpers are available in Symfony UX Turbo 2.21


ci: Add pullapprove support.

Add a pullapprove configuration file to bring this repo in line with
the others.
Signed-off-by: James O. D. Hunt<EMAIL_ADDRESS>

Hmm, seems the documentation team didn't have access to this repo. I've now granted that, but don't know how to get the pullapprove check to re-trigger.

Closing that one as #29 is now merged


Update dns-limits.md

Update the limit for the DNS Private resolver.

Learn Build status updates of commit 7f3ad6c:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

includes/dns-limits.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel

@greg-lindsay,
Can you review the proposed changes?
IMPORTANT: When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

#please-close


[FIX] Remove Mailers Directory Causing Error

General Info

Pivotal Tracker Story
[ ] Breaking?

Changes

Removed mailers directory

Testing

Tests now can be run successfully.

Documentation
N/A
Checklist
This is an emergency fix and was initially not connected to a tracker ticket.

[ ] Name of branch corresponds to story

EMERGENCY MERGE
This PR has passed all automated tests and will be merged without a preliminary review on the basis that this is an emergency fix that is currently disrupting production deployment.  A post-merge review will be requested and validated.

closes #11


Validation for array returns error for only 1st item and ignores other errors

Hi,
I am using schema-validation with express-validator 4.3.0, using a jsonSchema.json file.
Within the schema, there is an array of objects.
express-validator returns an error if only the 1st object value is incorrect.
If other objects i.e 2nd onwards (index : 1 ) has incorrect values, it does not return errors.
Using code as :
req.checkBody(jsonSchema);
return req.asyncValidationErrors();
eg: jsonSchema
{
"property1":  {
"optional": true
},
"propertytest.*": {
"isURL": true
}
}
Data:
{
"property1":  {
"test":"testvalue"
},
"propertytest": [
"http://sldjfsdjf.sldfjsdf.com/sdlfjskd",
"test"
]
}
I have looked at the code and it seems this is because in express_validator.js:
following code picks up only the first value from selectFields() as selectFields(req, context)[0]
return function(req, res, next) {
const contexts = [];
function runContexts() {
contexts.filter(context => !context.promise).forEach(context => {
const field = selectFields(req, context)[0];
Can you please let me know if there is a workaround for this and an example of it.

Also, need all the errors back for all the values that are incorrect in an array.


Fix Get-ItemProperty to report non-terminating error for cast exception

PR Summary

Fixes #9552
Adds catch for InvalidCastException so non-terminating error gets reported instead of terminating error when listing subkeys with 64 bit integer in 32 bit DWORD.
PR Context

Currently if you do this you get a terminating error for the cast and command is halted. With this exception handling we can now get non-terminating error and also suppress error with -ErrorAction SilentlyContinue. Get-ItemProperty will continue to enumerate subkeys even if an invalid one is found.
PR Checklist

[x] PR has a meaningful title

Use the present tense and imperative mood when describing your changes

[x] Summarized changes
[x] Make sure all .h, .cpp, .cs, .ps1 and .psm1 files have the correct copyright header
[x] This PR is ready to merge and is not Work in Progress.

If the PR is work in progress, please add the prefix WIP: or [ WIP ] to the beginning of the title (the WIP bot will keep its status check at Pending while the prefix is present) and remove the prefix when the PR is ready.

Breaking changes

[x] None
OR
[ ] Experimental feature(s) needed

[ ] Experimental feature name(s):

User-facing changes

[x] Not Applicable
OR
[ ] Documentation needed

[ ] Issue filed:

Testing - New and feature

[ ] N/A or can only be tested interactively
OR
[x] Make sure you've added a new test if existing tests do not effectively test the code changed

Tooling

[x] I have considered the user experience from a tooling perspective and don't believe tooling will be impacted.
OR
[ ] I have considered the user experience from a tooling perspective and opened an issue in the relevant tool repository. This may include:

[ ] Impact on PowerShell Editor Services which is used in the PowerShell extension for VSCode
(which runs in a different PS Host).

[ ] Issue filed:

[ ] Impact on Completions (both in the console and in editors) - one of PowerShell's most powerful features.

[ ] Issue filed:

[ ] Impact on PSScriptAnalyzer (which provides linting & formatting in the editor extensions).

[ ] Issue filed:

[ ] Impact on EditorSyntax (which provides syntax highlighting with in VSCode, GitHub, and many other editors).

[ ] Issue filed:

@ArmaanMcleod We need to skip new test code on Windows.

@ArmaanMcleod We need to skip new test code on Windows.

@iSazonov Strange. I saw $PSDefaultParameterValues["it:skip"] = !$IsWindows at the top of test file so thought it skip non-windows.

@ArmaanMcleod We need to skip new test code on Windows.

@iSazonov Do you mean we should skip if not windows and powershell core? Makes sense if this is for new test it should only work for powershell core.


GH Actions: Able to login but not able to find feeds

in GH actions, login seems fine, but afterwards no web feed is found (thus no kudos given).
This is not observed when running locally.
Example log from GH:
Run python give_kudos.py
Rejecting cookies.
Using placeholder
Using placeholder
---Logged in!!---
id XXXXXX
web feeds found: 0

Kudos given: 0

seems to be working on my older fork of the project
Run python give_kudos.py
---Logged in!!---
id XXXXXX
web feeds found: 100
===c======c======Some issue with getting owners-name container.
=====c======c======Some issue with getting owners-name container.
====c=====c====c====c==c===================
Kudos given: 70

@domantascibas I might just revert to the commit from which you forked.

Resolved after revert. Thanks @domantascibas !


Limited salt revision

I work at an environment where we use dotnet core and php (using yii2 framework). User are registered using web app built on yii2. And our new admin webapp was built using dotnet core. After tinkering a bit on your code, it seems that both are actually interoperable, but with a hurdle.
Looking at your source code, you only generate (and thus, validate) hashed password with salt revision of 'a'.
And according to wikipedia, bcrypt can use one of 'a', 'b', or 'y'. In fact, Yii2, one of well known php framework, use 'y' as salt revision. Is there any plan to make it optional instead of hardcoded as 'a'?

It looks like this is a much bigger issue than I might have realised. I'm not an expert in this area, but I will attempt to look into expanding this lib to at least support the y revision but I can't give a time frame on this just yet.

No problem. At least you are aware of the issue. Any future supports are always welcomed.

Hi @kurotsukikaitou,
Thanks for your patience with this one. I've looked into this and dug around to see what the actual differences are between the various versions. As far as I can see, as long as your implementation was correct, versions 2a, 2b, 2x and 2y should be identical. To my understating, 2x and 2y are not recognised as "real" versions and stem from a bug in crypt_blowfish. The 2b version came from a bug in the OpenBSD implementation and since bcrypt was originally designed for OpenBSD, they get to up the version number.
From looking at the cause of the bugs, I'm reasonably confident that this library is correct in its implementation of bcrypt. I've made an update to it to allow it to accept hashes with 2a, 2b, 2x or 2y salt revisions - however, it treats them all the same and makes no special measures to verify an "incorrect" hash from a buggy lib. In other words, as long as yii2 is generating correct hashes, this should now be able to verify them.
However, I can't reasonably have the lib generate a hash with salt revision 2y, as that's not really part of the bcrypt spec. I have updated it to generate hashes with a salt revision of 2b as this is in line with the the latest bcrypt spec, though I'm somewhat wary that this might break things for people using older bcrypt libs. I don't know what the state for that is.
Can you test the update? It's currently a pre-release package on Nuget, you can see it here: https://www.nuget.org/packages/BCrypt.Net-Core/1.2.0-CI00004
If it's all good, I'll push this as the final release. If generating salt revision of 2b is causing issues, I'll update the lib to allow you to specify which revision you want generated (though really it'll only change the revision in the hash, it won't actually change the calculation).
I'll leave this issue open until I get some kind of feedback on what the best approach should be.

I've test it. As for '2y' thing, yes, the framework did only read the 'y' so it still cause issue. So an ability to chose which revision will be great.
And you are correct, they don't actually change the calculation. Before I post this issue, I just modify your library at the input and output method to accept '2y' instead of '2a' without modifying any calculation and it already work and yii can my server can interchange the hashes without issues. So, yes, the calculation itself already correct. No need to touch it.

Okay perfect! I'll update the library to allow you to specify the revision used to fit your use case. It'll be an optional parameter so it shouldn't break existing code. Give me a couple of days to sort that out and I'll let you know here.

I found a spare hour, so @kurotsukikaitou feel free to test this revision - https://www.nuget.org/packages/BCrypt.Net-Core/1.2.0-CI00005
You should be able to pass in a SaltRevision of your choice now.

It's been over a month, so I'm going to assume this is all good. v1.3.0 final has been released and pushed to Nuget.


Added rudimentary system environment variable support.

Note: This is WIP and I definitely need some help on making this work the way most people would expect.
Summary
To really follow 12-factor, we need to be able to use environment variables at compile-time. I think what I have might just work on android, since it's in the gradle file, and iOS might just need to be documented, but I'd really like some other eyes of people who are way smarter than me.
Related to my issue, #271
Tasks

[x] Adds checks to grab variables out of env before grabbing them from the file.
[ ] Adds before-build script for android to write a gradle file (?) that reads the build env variables and maps them to the correct keys. (Note: Is this needed?)
[ ] Document iOS process, as described in this SO post to copy compile-time environment variables. Is there a way to automatically do this?
[ ] Test?

Maybe something like this SO solution could be automated for iOS.

@cf-bosung90 that's the idea - do you see something that contradicts that?

oh nevermind looks great actually :)

An alternative to this is using a babel plugin to inline the environment variables into the js output.
I was successful with this approach:
https://medium.com/@skiptomyhue/setting-up-environment-variables-for-react-native-builds-b66a2576a218
It won't work if you need to access them from the native side though.

Thanks!


Add typings

It's 2018 and this library doesn't have typings!
Would be nice to rewrite in TypeScript and just publish the generated .js and .d.ts files.

Done.


python.formatting.blackPath no longer supported

VS Code version
1.63.0
Extension version
v2021.12.1559732655
OS type
Linux
OS version
RHEL7
Python distribution
Anaconda
Python version
2.7
Language server
Pylance
Expected behaviour
python.formatting.blackPath should be supported
Actual behaviour
python.formatting.blackPath is not supported
Steps to reproduce
Try formatting with black.
Logs
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct

What's the status of this? I think automatic formatting is a big part of development workflows, so it would be great if this were prioritized.

Hi, thanks for the bug report, can you share what is the error that you are getting? because i tried formatting with black and it works for me.

I just ran into this, the setting appears to be used as the module name instead of a path to an installed entry_point.
In my case this means that I cannot use black for a project that is still stuck on python3.5.
I tried to install the latest black_windows.exe available from black's github page, and then set 	"python.formatting.blackPath": "black_windows", in my vscode settings, which results in the following python output in vscode:
Formatting with black failed.
You could either install the 'black' formatter, turn it off or use another formatter.
Error: Module 'black_windows' not installed.
> D:\projects\ctg\main\ctg\publish\python\python.exe -m black_windows --diff --quiet <path_to_my_file>

The black command is not in my conda environment.  Before this change, I was able to specify a path outside of my conda environment, but now I can't.

Checking in again. This is a regression and breaks behavior for presumably a reasonable number of users. Can this be prioritized?

Please check out https://marketplace.visualstudio.com/items?itemName=ms-python.black-formatter as we've moved our efforts towards supporting each tool as an extension. We have a setting there for this.


small description error

in the trailblazer section, the achievement "My Childhood" has a duplicate description of "Childhood's end"
instead of "Enhance 4 characters to Lv. 80",  the description should be  "Reach Character Level 40 with any character"

Thanks for the report


Driver manager

The second attempt to integrate automatic driver manager with Selenide.

It's an awesome feature.
Thank you for it @SergeyPirogov !

Changes Unknown when pulling 9f4c37aafc102cdd52b6a1bb45f3e94ec2c912a1 on SergeyPirogov:driver_manager into ** on codeborne:master**.

@asolntsev @vinogradoff what if we add automatic driver manager as experimental feature? So by default automatic driver management will be disabled,  but users will  be able to enable it by setting some flag like Configuration.automatic_driver_manager = true
What do you think?

@SergeyPirogov why not Configuration.automaticDriverManager or Configuration.automaticWebDriverManager?

@rmarinsky oh yes, Configuration.automaticDriverManager is good for me

What if someone would like to use this driver manager, but also needs to keep with some particular version of the driver, instead of latest?
I think the possibility to set the driver version would also be a nice thing to have.

@JustAlexOne Yes, this is possible via property file.

We use WebDriverManager with Selenide in our project and this is perfect match. Does it make sense to create new code when its possible to leverage existing tool?

@SergeyPirogov @BorisOsipov @rmarinsky @JustAlexOne @mariaklimenko
Hi all!
I am sorry for the long delay with this PR. :(
Let me explain why I am in doubt.

I tried to use WebdriverManager in my project, and it failed. Because my project occasionally contains file application.conf, and WebdriverManager detects it and tries to parse. And fails (because our application.conf has a bit different format). I don't like tool that fails. :(

WebdriverManager only downloads webdriver binary, thought users still need to install browser. So, it only solves half of problem. At the same time, there is a solution that solves the whole problem: TestContainers. It runs both browser and webdriver (using Docker). Probable we should integrate this into Selenide instead of WebdriverManager?

To use TestContainers user should have docker installed as well.

I'm not sure that allot of selenide's users have the application.conf file in projects
We can describe it in article for this functional and in javadoc - it's not a problem. If user want to use any of browser for testing it's clear that he should have installed binary. I think that it not a problem.
This feature will simplify first start of use selenide for any user and cool feature for speakers.
TestContainer on Mac and Windows use only legacy Docker Toolbox - and it have some problems with start and kill containers

Take a look at this commits
https://github.com/bonigarcia/webdrivermanager/commit/a615372135425a325fbb9538165bceaf9ab8d052
There is no more application.properties

I agree with @SergeyPirogov and @rmarinsky.
It is nice to have such a feature in Selenide even if it will be disabled by default.
TestContainers needs docker.Docker is less popular than browsers are and we need to install it:)
@asolntsev I realized you're worried about future support effort as well, but I guess we don't need to stuck on your single unsuccessful attempts to use DriverManager.

Also README mentions that wd manager uses webdrivermanager.properties now
https://github.com/bonigarcia/webdrivermanager#configuration

Moreover, anybody can set path by passing System property
protected WdmConfig() {
        conf = ConfigFactory.load(WdmConfig.class.getClassLoader(), System
                .getProperty("wdm.properties", "webdrivermanager.properties"));
    }

@SergeyPirogov @BorisOsipov @rmarinsky @JustAlexOne @mariaklimenko
Good news: PR #610 has been merged to master. Finally!

Wow, it's a huge step forward. Waiting for the new release

Thank you!
2017-09-29 7:51 GMT+03:00 Serhii Pirohov<EMAIL_ADDRESS>
Wow, it's a huge step forward. Waiting for the new release
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/codeborne/selenide/pull/475#issuecomment-333030313,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AY4Z50bsgpFHkLs_wkGvELv_1A7qdcYIks5snHdWgaJpZM4MBjbU
.


Change locale structure to support translation service.

This PR refactors the language resources files to support upcoming translation service integration.

I have tested it by uninstalling the extension, creating a package and installing again from VSIX.


[WIP] Migrate to vscode-test module

Resolves #1430
I am still working on this, PR opened just to be able to test if CI builds are fine.
Still to do:

[ ] investigate warning<EMAIL_ADDRESS>The engine "vscode" appears to be invalid. warning
[ ] fix nvm is not compatible with the "npm_config_prefix" environment variable: currently set to "/usr/local" when running CI build

The engine "vscode" appears to be invalid. This is yarn warning that I haven't found a way to suppress.
VSCode uses "engines" > "vscode" entry from package.json to check for minimum allowed version for extension.
Maybe these link will be helpful for you
https://github.com/yarnpkg/yarn/issues/1102
https://github.com/yarnpkg/rfcs/pull/69
Checks are performed in this file and looks like there is no way to ignore vscode in engines checks with configuration


About prompt for Image-Text Alignment

I wonder which kind of prompt you used to generate images, which will be feeded into LLava to measure the reward of image-text alignment?
Is it the same as those used for other reward functions, like JEPG, or Aesthetic?

The relevant fields in the config are prompt_fn and prompt_kwargs. For example, for the llava_bertscore task, it calls the nouns_activities prompt function with common_animals.txt and activities_v0.txt as arguments.

Understand, thx


Kanishk's contribution

Rock, paper and scissors python game added to the repo. Please add hacktoberfest label to the pull request.

Cannot merge, Game already present.


My web app tries to use ManagedIdentityCredential on local development computer

In ASP.NET Core 3.1 web app, I' m using Azure key vault  configuration:
	public static IHostBuilder CreateHostBuilder(string[] args)
	{
		return Host.CreateDefaultBuilder(args)
			.ConfigureAppConfiguration((context, builder) =>
			{
				var secretClient = new SecretClient(
					new Uri("https://MyKeyVault.vault.azure.net/"),
					new DefaultAzureCredential());
				builder.AddAzureKeyVault(secretClient, new KeyVaultSecretManager());
			})
			.ConfigureWebHostDefaults(webBuilder =>
			{
				webBuilder.UseStartup<Startup>();
			});
	}

Azure.Identity v1.2.3 is installed transitively, when I installed Microsoft.Identity.Web v1.8.2.
It works on my local development computer, when I run my web app from within Visual Studio 2019, by pressing F5 (debug mode). I checked; the actual credential used was SharedTokenCacheCredential (by replacing DefaultAzureCredential with EnvironmentCredential, ManagedIdentityCredential, and SharedTokenCacheCredential in that order).
Now, in my new computer I installed Visual Studio 2019, git cloned my web app, and ran the web app.
The web app threw an exception: AuthenticationFailedException: ManagedIdentityCredential authentication failed: Retry failed after 4 tries.
Looks like, the web app is trying to use ManagedIdentityCredential in my local development computer (If I replace DefaultAzureCredential with SharedTokenCacheCredential, then it works in my new computer). Why is it happening?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 414d8832-9224-3bb5-2bf4-1197c41fdedf
Version Independent ID: 02d95dd6-bf1b-5cef-bc94-ac187b133c45
Content: DefaultAzureCredential Class (Azure.Identity) - Azure for .NET Developers
Content Source: xml/Azure.Identity/DefaultAzureCredential.xml
Service: azure
GitHub Login: @rloutlaw
Microsoft Alias: routlaw

Thank you for your feedback.  Tagging and routing to the team members best able to assist.

Hi @JandosHk
Would you mind providing the logging output after reproducing this with logging enabled?

Hi @christothes
I tried logging today, but it seems that after using SharedTokenCacheCredential  or VisualStudioCredential, the error has gone.
Below is what I got when the error was thrown before I tried other credential types:

An error occurred while starting the application.
SocketException: 既存の接続はリモート ホストに強制的に切断されました。
Unknown location

IOException: Unable to read data from the transport connection: 既存の接続はリモート ホストに強制的に切断されました。.
System.Net.Sockets.Socket+AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)

HttpRequestException: An error occurred while sending the request.
System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken)

RequestFailedException: An error occurred while sending the request.
Azure.Core.Pipeline.HttpClientTransport.ProcessAsync(HttpMessage message)

AggregateException: Retry failed after 4 tries. (An error occurred while sending the request.) (An error occurred while sending the request.) (An error occurred while sending the request.) (An error occurred while sending the request.)
Azure.Core.Pipeline.RetryPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory pipeline, bool async)

AuthenticationFailedException: ManagedIdentityCredential authentication failed: Retry failed after 4 tries. (An error occurred while sending the request.) (An error occurred while sending the request.) (An error occurred while sending the request.) (An error occurred while sending the request.)
Azure.Identity.CredentialDiagnosticScope.FailWrapAndThrow(Exception ex)

SocketException: 既存の接続はリモート ホストに強制的に切断されました。

Show raw exception details
IOException: Unable to read data from the transport connection: 既存の接続はリモート ホストに強制的に切断されました。.
System.Net.Sockets.Socket+AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
System.Net.Sockets.Socket+AwaitableSocketAsyncEventArgs.GetResult(short token)
System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable+ConfiguredValueTaskAwaiter.GetResult()
System.Net.Http.HttpConnection.FillAsync()
System.Net.Http.HttpConnection.ReadNextResponseHeaderLineAsync(bool foldedHeadersAllowed)
System.Threading.Tasks.ValueTask.get_Result()
System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable+ConfiguredValueTaskAwaiter.GetResult()
System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken)

Show raw exception details
HttpRequestException: An error occurred while sending the request.
System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken)
System.Net.Http.HttpConnectionPool.SendWithNtConnectionAuthAsync(HttpConnection connection, HttpRequestMessage request, bool doRequestAuth, CancellationToken cancellationToken)
System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, bool doRequestAuth, CancellationToken cancellationToken)
System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
System.Net.Http.HttpClient.FinishSendAsyncUnbuffered(Task sendTask, HttpRequestMessage request, CancellationTokenSource cts, bool disposeCts)
Azure.Core.Pipeline.HttpClientTransport.ProcessAsync(HttpMessage message)

Show raw exception details
RequestFailedException: An error occurred while sending the request.
Azure.Core.Pipeline.HttpClientTransport.ProcessAsync(HttpMessage message)
System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable+ConfiguredValueTaskAwaiter.GetResult()
Azure.Core.Pipeline.RequestActivityPolicy.ProcessNextAsync(HttpMessage message, ReadOnlyMemory pipeline, bool isAsync)
System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable+ConfiguredValueTaskAwaiter.GetResult()
Azure.Core.Pipeline.RequestActivityPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory pipeline, bool isAsync)
System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable+ConfiguredValueTaskAwaiter.GetResult()
Azure.Core.Pipeline.ResponseBodyPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory pipeline, bool async)
System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable+ConfiguredValueTaskAwaiter.GetResult()
Azure.Core.Pipeline.ResponseBodyPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory pipeline)
System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable+ConfiguredValueTaskAwaiter.GetResult()
Azure.Core.Pipeline.LoggingPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory pipeline, bool async)
System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable+ConfiguredValueTaskAwaiter.GetResult()
Azure.Core.Pipeline.LoggingPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory pipeline)
Azure.Core.Pipeline.RetryPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory pipeline, bool async)

Show raw exception details
AggregateException: Retry failed after 4 tries. (An error occurred while sending the request.) (An error occurred while sending the request.) (An error occurred while sending the request.) (An error occurred while sending the request.)
Azure.Core.Pipeline.RetryPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory pipeline, bool async)
System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable+ConfiguredValueTaskAwaiter.GetResult()
Azure.Core.Pipeline.HttpPipelineSynchronousPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory pipeline)
System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable+ConfiguredValueTaskAwaiter.GetResult()
Azure.Core.Pipeline.HttpPipelineSynchronousPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory pipeline)
System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable+ConfiguredValueTaskAwaiter.GetResult()
Azure.Core.Pipeline.HttpPipelineSynchronousPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory pipeline)
System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable+ConfiguredValueTaskAwaiter.GetResult()
Azure.Core.Pipeline.HttpPipeline.SendRequestAsync(Request request, CancellationToken cancellationToken)
System.Threading.Tasks.ValueTask.get_Result()
System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable+ConfiguredValueTaskAwaiter.GetResult()
Azure.Identity.ManagedIdentityClient.AuthenticateAsync(string[] scopes, CancellationToken cancellationToken)
Azure.Identity.ManagedIdentityCredential.GetTokenImplAsync(bool async, TokenRequestContext requestContext, CancellationToken cancellationToken)

Show raw exception details
AuthenticationFailedException: ManagedIdentityCredential authentication failed: Retry failed after 4 tries. (An error occurred while sending the request.) (An error occurred while sending the request.) (An error occurred while sending the request.) (An error occurred while sending the request.)
Azure.Identity.CredentialDiagnosticScope.FailWrapAndThrow(Exception ex)
Azure.Identity.ManagedIdentityCredential.GetTokenImplAsync(bool async, TokenRequestContext requestContext, CancellationToken cancellationToken)
System.Threading.Tasks.ValueTask.get_Result()
System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable+ConfiguredValueTaskAwaiter.GetResult()
Azure.Identity.ManagedIdentityCredential.GetTokenAsync(TokenRequestContext requestContext, CancellationToken cancellationToken)
Azure.Identity.DefaultAzureCredential.GetTokenFromSourcesAsync(TokenCredential[] sources, TokenRequestContext requestContext, bool async, CancellationToken cancellationToken)
System.Threading.Tasks.ValueTask.get_Result()
System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable+ConfiguredValueTaskAwaiter.GetResult()
Azure.Identity.DefaultAzureCredential.GetTokenImplAsync(bool async, TokenRequestContext requestContext, CancellationToken cancellationToken)
Azure.Identity.CredentialDiagnosticScope.FailWrapAndThrow(Exception ex)
Azure.Identity.DefaultAzureCredential.GetTokenImplAsync(bool async, TokenRequestContext requestContext, CancellationToken cancellationToken)
System.Threading.Tasks.ValueTask.get_Result()
System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable+ConfiguredValueTaskAwaiter.GetResult()
Azure.Identity.DefaultAzureCredential.GetTokenAsync(TokenRequestContext requestContext, CancellationToken cancellationToken)
System.Threading.Tasks.ValueTask.get_Result()
System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable+ConfiguredValueTaskAwaiter.GetResult()
Azure.Security.KeyVault.ChallengeBasedAuthenticationPolicy.AuthenticateRequestAsync(HttpMessage message, bool async, AuthenticationChallenge challenge)
Azure.Security.KeyVault.ChallengeBasedAuthenticationPolicy.ProcessCoreAsync(HttpMessage message, ReadOnlyMemory pipeline, bool async)
Azure.Core.Pipeline.RetryPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory pipeline, bool async)
Azure.Core.Pipeline.RetryPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory pipeline, bool async)
System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable+ConfiguredValueTaskAwaiter.GetResult()
Azure.Core.Pipeline.HttpPipelineSynchronousPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory pipeline)
System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable+ConfiguredValueTaskAwaiter.GetResult()
Azure.Core.Pipeline.HttpPipelineSynchronousPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory pipeline)
System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable+ConfiguredValueTaskAwaiter.GetResult()
Azure.Core.Pipeline.HttpPipelineSynchronousPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory pipeline)
System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable+ConfiguredValueTaskAwaiter.GetResult()
Azure.Core.Pipeline.HttpPipeline.SendRequestAsync(Request request, CancellationToken cancellationToken)
System.Threading.Tasks.ValueTask.get_Result()
System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable+ConfiguredValueTaskAwaiter.GetResult()
Azure.Security.KeyVault.KeyVaultPipeline.SendRequestAsync(Request request, CancellationToken cancellationToken)
Azure.Security.KeyVault.KeyVaultPipeline.GetPageAsync(Uri firstPageUri, string nextLink, Func itemFactory, string operationName, CancellationToken cancellationToken)
Azure.Core.PageResponseEnumerator+FuncAsyncPageable.AsPages(string continuationToken, Nullable pageSizeHint)
Azure.Core.PageResponseEnumerator+FuncAsyncPageable.AsPages(string continuationToken, Nullable pageSizeHint)
Azure.AsyncPageable.GetAsyncEnumerator(CancellationToken cancellationToken)
Azure.AsyncPageable.GetAsyncEnumerator(CancellationToken cancellationToken)
Azure.AsyncPageable.GetAsyncEnumerator(CancellationToken cancellationToken)
Azure.Extensions.AspNetCore.Configuration.Secrets.AzureKeyVaultConfigurationProvider.LoadAsync()
Azure.Extensions.AspNetCore.Configuration.Secrets.AzureKeyVaultConfigurationProvider.LoadAsync()
Azure.Extensions.AspNetCore.Configuration.Secrets.AzureKeyVaultConfigurationProvider.Load()
Microsoft.Extensions.Configuration.ConfigurationRoot..ctor(IList providers)
Microsoft.Extensions.Configuration.ConfigurationBuilder.Build()
Microsoft.Extensions.Hosting.HostBuilder.BuildAppConfiguration()
Microsoft.Extensions.Hosting.HostBuilder.Build()
MyWebApp.Program.Main(string[] args) in Program.cs
+
CreateHostBuilder(args).Build().Run();

Show raw exception details
.NET Core 3.1.14 X64 v<IP_ADDRESS>    |   Microsoft.AspNetCore.Hosting version 3.1.14+440dadc05b2bed38e6a726c2492db90e77d43c62    |    Microsoft Windows 10.0.19042    |   Need help?

Does this still reproduce wit the latest version of Microsoft.Identity.Web (which uses version 1.3.0 of Azure.Identity) or after directly taking a dependency on the latest Azure.Identity 1.4.0?

Today I installed Microsoft.Web.Identity 1.10.0 (which uses Azure.Identity 1.3.0). and the same error was thrown. Directly installing Azure.Identity 1.4.0 didn't help either.

Thank you for trying the newer version.
Would you mind providing the logging output after reproducing this with logging enabled?

I enabled logging like below:
public static IHostBuilder CreateHostBuilder(string[] args)
{
    return Host.CreateDefaultBuilder(args)
        .ConfigureAppConfiguration((context, builder) =>
        {
            using AzureEventSourceListener listener = AzureEventSourceListener.CreateConsoleLogger();
            SecretClientOptions options = new SecretClientOptions()
            {
                Diagnostics =
                {
                    IsLoggingContentEnabled = true
                }
            };

            var secretClient = new SecretClient(
                new Uri("https://MyKeyVault.vault.azure.net/"),
                new DefaultAzureCredential(),
                options);
            builder.AddAzureKeyVault(secretClient, new KeyVaultSecretManager());
        })
        .ConfigureWebHostDefaults(webBuilder =>
        {
            webBuilder.UseStartup<Startup>();
        });
}

Is it correct? I couldn't find any example where listener variable is used.
What I get on my VS2019 output window is below:

Unhandled exception. Azure.Identity.AuthenticationFailedException: ManagedIdentityCredential authentication failed: Retry failed after 4 tries. (An error occurred while sending the request.) (An error occurred while sending the request.) (An error occurred while sending the request.) (An error occurred while sending the request.)
---> System.AggregateException: Retry failed after 4 tries. (An error occurred while sending the request.) (An error occurred while sending the request.) (An error occurred while sending the request.) (An error occurred while sending the request.)
---> Azure.RequestFailedException: An error occurred while sending the request.
---> System.Net.Http.HttpRequestException: An error occurred while sending the request.
---> System.IO.IOException: Unable to read data from the transport connection: 既存の接続はリモート ホストに強制的に切断されました。.
---> System.Net.Sockets.SocketException (10054): 既存の接続はリモート ホストに強制的に切断されました。
--- End of inner exception stack trace ---
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.GetResult(Int16 token)
at System.Net.Http.HttpConnection.FillAsync()
at System.Net.Http.HttpConnection.ReadNextResponseHeaderLineAsync(Boolean foldedHeadersAllowed)
at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithNtConnectionAuthAsync(HttpConnection connection, HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.FinishSendAsyncUnbuffered(Task1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)    at Azure.Core.Pipeline.HttpClientTransport.ProcessAsync(HttpMessage message)    --- End of inner exception stack trace ---    at Azure.Core.Pipeline.HttpClientTransport.ProcessAsync(HttpMessage message)    at Azure.Core.Pipeline.RequestActivityPolicy.ProcessNextAsync(HttpMessage message, ReadOnlyMemory1 pipeline, Boolean isAsync)
at Azure.Core.Pipeline.RequestActivityPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline, Boolean isAsync)    at Azure.Core.Pipeline.ResponseBodyPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline, Boolean async)
at Azure.Core.Pipeline.ResponseBodyPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline)    at Azure.Core.Pipeline.LoggingPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline, Boolean async)
at Azure.Core.Pipeline.LoggingPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline)    at Azure.Core.Pipeline.RetryPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline, Boolean async)
--- End of inner exception stack trace ---
at Azure.Core.Pipeline.RetryPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline, Boolean async)    at Azure.Core.Pipeline.HttpPipelineSynchronousPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline)
at Azure.Core.Pipeline.HttpPipelineSynchronousPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline)    at Azure.Core.Pipeline.HttpPipelineSynchronousPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline)
at Azure.Core.Pipeline.HttpPipeline.SendRequestAsync(Request request, CancellationToken cancellationToken)
at Azure.Identity.ManagedIdentityClient.AuthenticateAsync(String[] scopes, CancellationToken cancellationToken)
at Azure.Identity.ManagedIdentityCredential.GetTokenImplAsync(Boolean async, TokenRequestContext requestContext, CancellationToken cancellationToken)
---> (Inner Exception #1) Azure.RequestFailedException: An error occurred while sending the request.
---> System.Net.Http.HttpRequestException: An error occurred while sending the request.
---> System.IO.IOException: Unable to read data from the transport connection: 既存の接続はリモート ホストに強制的に切断されました。.
---> System.Net.Sockets.SocketException (10054): 既存の接続はリモート ホストに強制的に切断されました。
--- End of inner exception stack trace ---
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.GetResult(Int16 token)
at System.Net.Http.HttpConnection.FillAsync()
at System.Net.Http.HttpConnection.ReadNextResponseHeaderLineAsync(Boolean foldedHeadersAllowed)
at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithNtConnectionAuthAsync(HttpConnection connection, HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.FinishSendAsyncUnbuffered(Task1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)    at Azure.Core.Pipeline.HttpClientTransport.ProcessAsync(HttpMessage message)    --- End of inner exception stack trace ---    at Azure.Core.Pipeline.HttpClientTransport.ProcessAsync(HttpMessage message)    at Azure.Core.Pipeline.RequestActivityPolicy.ProcessNextAsync(HttpMessage message, ReadOnlyMemory1 pipeline, Boolean isAsync)
at Azure.Core.Pipeline.RequestActivityPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline, Boolean isAsync)    at Azure.Core.Pipeline.ResponseBodyPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline, Boolean async)
at Azure.Core.Pipeline.ResponseBodyPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline)    at Azure.Core.Pipeline.LoggingPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline, Boolean async)
at Azure.Core.Pipeline.LoggingPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline)    at Azure.Core.Pipeline.RetryPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline, Boolean async)<---
---> (Inner Exception #2) Azure.RequestFailedException: An error occurred while sending the request.
---> System.Net.Http.HttpRequestException: An error occurred while sending the request.
---> System.IO.IOException: Unable to read data from the transport connection: 既存の接続はリモート ホストに強制的に切断されました。.
---> System.Net.Sockets.SocketException (10054): 既存の接続はリモート ホストに強制的に切断されました。
--- End of inner exception stack trace ---
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.GetResult(Int16 token)
at System.Net.Http.HttpConnection.FillAsync()
at System.Net.Http.HttpConnection.ReadNextResponseHeaderLineAsync(Boolean foldedHeadersAllowed)
at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithNtConnectionAuthAsync(HttpConnection connection, HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.FinishSendAsyncUnbuffered(Task1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)    at Azure.Core.Pipeline.HttpClientTransport.ProcessAsync(HttpMessage message)    --- End of inner exception stack trace ---    at Azure.Core.Pipeline.HttpClientTransport.ProcessAsync(HttpMessage message)    at Azure.Core.Pipeline.RequestActivityPolicy.ProcessNextAsync(HttpMessage message, ReadOnlyMemory1 pipeline, Boolean isAsync)
at Azure.Core.Pipeline.RequestActivityPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline, Boolean isAsync)    at Azure.Core.Pipeline.ResponseBodyPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline, Boolean async)
at Azure.Core.Pipeline.ResponseBodyPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline)    at Azure.Core.Pipeline.LoggingPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline, Boolean async)
at Azure.Core.Pipeline.LoggingPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline)    at Azure.Core.Pipeline.RetryPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline, Boolean async)<---
---> (Inner Exception #3) Azure.RequestFailedException: An error occurred while sending the request.
---> System.Net.Http.HttpRequestException: An error occurred while sending the request.
---> System.IO.IOException: Unable to read data from the transport connection: 既存の接続はリモート ホストに強制的に切断されました。.
---> System.Net.Sockets.SocketException (10054): 既存の接続はリモート ホストに強制的に切断されました。
--- End of inner exception stack trace ---
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.GetResult(Int16 token)
at System.Net.Http.HttpConnection.FillAsync()
at System.Net.Http.HttpConnection.ReadNextResponseHeaderLineAsync(Boolean foldedHeadersAllowed)
at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithNtConnectionAuthAsync(HttpConnection connection, HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.FinishSendAsyncUnbuffered(Task1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)    at Azure.Core.Pipeline.HttpClientTransport.ProcessAsync(HttpMessage message)    --- End of inner exception stack trace ---    at Azure.Core.Pipeline.HttpClientTransport.ProcessAsync(HttpMessage message)    at Azure.Core.Pipeline.RequestActivityPolicy.ProcessNextAsync(HttpMessage message, ReadOnlyMemory1 pipeline, Boolean isAsync)
at Azure.Core.Pipeline.RequestActivityPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline, Boolean isAsync)    at Azure.Core.Pipeline.ResponseBodyPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline, Boolean async)
at Azure.Core.Pipeline.ResponseBodyPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline)    at Azure.Core.Pipeline.LoggingPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline, Boolean async)
at Azure.Core.Pipeline.LoggingPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline)    at Azure.Core.Pipeline.RetryPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline, Boolean async)<---
--- End of inner exception stack trace ---
at Azure.Identity.CredentialDiagnosticScope.FailWrapAndThrow(Exception ex)
at Azure.Identity.ManagedIdentityCredential.GetTokenImplAsync(Boolean async, TokenRequestContext requestContext, CancellationToken cancellationToken)
at Azure.Identity.ManagedIdentityCredential.GetTokenAsync(TokenRequestContext requestContext, CancellationToken cancellationToken)
at Azure.Identity.DefaultAzureCredential.GetTokenFromSourcesAsync(TokenCredential[] sources, TokenRequestContext requestContext, Boolean async, CancellationToken cancellationToken)
at Azure.Identity.DefaultAzureCredential.GetTokenImplAsync(Boolean async, TokenRequestContext requestContext, CancellationToken cancellationToken)
at Azure.Identity.CredentialDiagnosticScope.FailWrapAndThrow(Exception ex)
at Azure.Identity.DefaultAzureCredential.GetTokenImplAsync(Boolean async, TokenRequestContext requestContext, CancellationToken cancellationToken)
at Azure.Identity.DefaultAzureCredential.GetTokenAsync(TokenRequestContext requestContext, CancellationToken cancellationToken)
at Azure.Security.KeyVault.ChallengeBasedAuthenticationPolicy.AuthenticateRequestAsync(HttpMessage message, Boolean async, AuthenticationChallenge challenge)
at Azure.Security.KeyVault.ChallengeBasedAuthenticationPolicy.ProcessCoreAsync(HttpMessage message, ReadOnlyMemory1 pipeline, Boolean async)    at Azure.Core.Pipeline.RetryPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline, Boolean async)
at Azure.Core.Pipeline.RetryPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline, Boolean async)    at Azure.Core.Pipeline.HttpPipelineSynchronousPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline)
at Azure.Core.Pipeline.HttpPipelineSynchronousPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline)    at Azure.Core.Pipeline.HttpPipelineSynchronousPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline)
at Azure.Core.Pipeline.HttpPipeline.SendRequestAsync(Request request, CancellationToken cancellationToken)
at Azure.Security.KeyVault.KeyVaultPipeline.SendRequestAsync(Request request, CancellationToken cancellationToken)
at Azure.Security.KeyVault.KeyVaultPipeline.GetPageAsync[T](Uri firstPageUri, String nextLink, Func1 itemFactory, String operationName, CancellationToken cancellationToken)    at Azure.Core.PageResponseEnumerator.FuncAsyncPageable1.AsPages(String continuationToken, Nullable1 pageSizeHint)+MoveNext()    at Azure.Core.PageResponseEnumerator.FuncAsyncPageable1.AsPages(String continuationToken, Nullable1 pageSizeHint)+System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult()    at Azure.AsyncPageable1.GetAsyncEnumerator(CancellationToken cancellationToken)+MoveNext()
at Azure.AsyncPageable1.GetAsyncEnumerator(CancellationToken cancellationToken)+MoveNext()    at Azure.AsyncPageable1.GetAsyncEnumerator(CancellationToken cancellationToken)+System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult()
at Azure.Extensions.AspNetCore.Configuration.Secrets.AzureKeyVaultConfigurationProvider.LoadAsync()
at Azure.Extensions.AspNetCore.Configuration.Secrets.AzureKeyVaultConfigurationProvider.LoadAsync()
at Azure.Extensions.AspNetCore.Configuration.Secrets.AzureKeyVaultConfigurationProvider.Load()
at Microsoft.Extensions.Configuration.ConfigurationRoot..ctor(IList`1 providers)
at Microsoft.Extensions.Configuration.ConfigurationBuilder.Build()
at Microsoft.Extensions.Hosting.HostBuilder.BuildAppConfiguration()
at Microsoft.Extensions.Hosting.HostBuilder.Build()
at MyWebApp.Program.Main(String[] args) in C:\Users\abc\source\repos\MyWebApp\MyWebApp\MyWebApp\Program.cs:line 16

Looks similar to error page.

BTW, my coworker is experiencing the same issue on her dev computer.

I enabled logging like below:
public static IHostBuilder CreateHostBuilder(string[] args)
{
    return Host.CreateDefaultBuilder(args)
        .ConfigureAppConfiguration((context, builder) =>
        {
            using AzureEventSourceListener listener = AzureEventSourceListener.CreateConsoleLogger();
            SecretClientOptions options = new SecretClientOptions()
            {
                Diagnostics =
                {
                    IsLoggingContentEnabled = true
                }
            };

            var secretClient = new SecretClient(
                new Uri("https://MyKeyVault.vault.azure.net/"),
                new DefaultAzureCredential(),
                options);
            builder.AddAzureKeyVault(secretClient, new KeyVaultSecretManager());
        })
        .ConfigureWebHostDefaults(webBuilder =>
        {
            webBuilder.UseStartup<Startup>();
        });
}

Is it correct? I couldn't find any example where listener variable is used.

Almost - you want to set the logging options on the DefaultAzureCredentialOptions.
I suspect that the logging will show that you have some device on the local network responding on the IP address <IP_ADDRESS>

I set logging like below:
DefaultAzureCredentialOptions opts = new DefaultAzureCredentialOptions
{
	Diagnostics =
	{
		IsLoggingContentEnabled = true
	}
};
var secretClient = new SecretClient(
	new Uri("https://MyKeyVault.vault.azure.net/"),
	new DefaultAzureCredential(opts));
builder.AddAzureKeyVault(secretClient, new KeyVaultSecretManager());

Logging messages are below:

Starting IIS Express ...
Successfully registered URL "https://localhost:44364/" for site "MyWebApp" application "/"
Registration completed for site "MyWebApp"
IIS Express is running.
Unhandled exception. Azure.Identity.AuthenticationFailedException: ManagedIdentityCredential authentication failed: Retry failed after 4 tries. (An error occurred while sending the request.) (An error occurred while sending the request.) (An error occurred while sending the request.) (An error occurred while sending the request.)
---> System.AggregateException: Retry failed after 4 tries. (An error occurred while sending the request.) (An error occurred while sending the request.) (An error occurred while sending the request.) (An error occurred while sending the request.)
---> Azure.RequestFailedException: An error occurred while sending the request.
---> System.Net.Http.HttpRequestException: An error occurred while sending the request.
---> System.IO.IOException: Unable to read data from the transport connection: 既存の接続はリモート ホストに強制的に切断されました。.
---> System.Net.Sockets.SocketException (10054): 既存の接続はリモート ホストに強制的に切断されました。
--- End of inner exception stack trace ---
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.GetResult(Int16 token)
at System.Net.Http.HttpConnection.FillAsync()
at System.Net.Http.HttpConnection.ReadNextResponseHeaderLineAsync(Boolean foldedHeadersAllowed)
at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithNtConnectionAuthAsync(HttpConnection connection, HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.FinishSendAsyncUnbuffered(Task1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)    at Azure.Core.Pipeline.HttpClientTransport.ProcessAsync(HttpMessage message)    --- End of inner exception stack trace ---    at Azure.Core.Pipeline.HttpClientTransport.ProcessAsync(HttpMessage message)    at Azure.Core.Pipeline.RequestActivityPolicy.ProcessNextAsync(HttpMessage message, ReadOnlyMemory1 pipeline, Boolean isAsync)
at Azure.Core.Pipeline.RequestActivityPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline, Boolean isAsync)    at Azure.Core.Pipeline.ResponseBodyPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline, Boolean async)
at Azure.Core.Pipeline.ResponseBodyPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline)    at Azure.Core.Pipeline.LoggingPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline, Boolean async)
at Azure.Core.Pipeline.LoggingPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline)    at Azure.Core.Pipeline.RetryPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline, Boolean async)
--- End of inner exception stack trace ---
at Azure.Core.Pipeline.RetryPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline, Boolean async)    at Azure.Core.Pipeline.HttpPipelineSynchronousPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline)
at Azure.Core.Pipeline.HttpPipelineSynchronousPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline)    at Azure.Core.Pipeline.HttpPipelineSynchronousPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline)
at Azure.Core.Pipeline.HttpPipeline.SendRequestAsync(Request request, CancellationToken cancellationToken)
at Azure.Identity.ManagedIdentityClient.AuthenticateAsync(String[] scopes, CancellationToken cancellationToken)
at Azure.Identity.ManagedIdentityCredential.GetTokenImplAsync(Boolean async, TokenRequestContext requestContext, CancellationToken cancellationToken)
---> (Inner Exception #1) Azure.RequestFailedException: An error occurred while sending the request.
---> System.Net.Http.HttpRequestException: An error occurred while sending the request.
---> System.IO.IOException: Unable to read data from the transport connection: 既存の接続はリモート ホストに強制的に切断されました。.
---> System.Net.Sockets.SocketException (10054): 既存の接続はリモート ホストに強制的に切断されました。
--- End of inner exception stack trace ---
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.GetResult(Int16 token)
at System.Net.Http.HttpConnection.FillAsync()
at System.Net.Http.HttpConnection.ReadNextResponseHeaderLineAsync(Boolean foldedHeadersAllowed)
at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithNtConnectionAuthAsync(HttpConnection connection, HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.FinishSendAsyncUnbuffered(Task1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)    at Azure.Core.Pipeline.HttpClientTransport.ProcessAsync(HttpMessage message)    --- End of inner exception stack trace ---    at Azure.Core.Pipeline.HttpClientTransport.ProcessAsync(HttpMessage message)    at Azure.Core.Pipeline.RequestActivityPolicy.ProcessNextAsync(HttpMessage message, ReadOnlyMemory1 pipeline, Boolean isAsync)
at Azure.Core.Pipeline.RequestActivityPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline, Boolean isAsync)    at Azure.Core.Pipeline.ResponseBodyPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline, Boolean async)
at Azure.Core.Pipeline.ResponseBodyPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline)    at Azure.Core.Pipeline.LoggingPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline, Boolean async)
at Azure.Core.Pipeline.LoggingPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline)    at Azure.Core.Pipeline.RetryPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline, Boolean async)<---
---> (Inner Exception #2) Azure.RequestFailedException: An error occurred while sending the request.
---> System.Net.Http.HttpRequestException: An error occurred while sending the request.
---> System.IO.IOException: Unable to read data from the transport connection: 既存の接続はリモート ホストに強制的に切断されました。.
---> System.Net.Sockets.SocketException (10054): 既存の接続はリモート ホストに強制的に切断されました。
--- End of inner exception stack trace ---
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.GetResult(Int16 token)
at System.Net.Http.HttpConnection.FillAsync()
at System.Net.Http.HttpConnection.ReadNextResponseHeaderLineAsync(Boolean foldedHeadersAllowed)
at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithNtConnectionAuthAsync(HttpConnection connection, HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.FinishSendAsyncUnbuffered(Task1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)    at Azure.Core.Pipeline.HttpClientTransport.ProcessAsync(HttpMessage message)    --- End of inner exception stack trace ---    at Azure.Core.Pipeline.HttpClientTransport.ProcessAsync(HttpMessage message)    at Azure.Core.Pipeline.RequestActivityPolicy.ProcessNextAsync(HttpMessage message, ReadOnlyMemory1 pipeline, Boolean isAsync)
at Azure.Core.Pipeline.RequestActivityPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline, Boolean isAsync)    at Azure.Core.Pipeline.ResponseBodyPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline, Boolean async)
at Azure.Core.Pipeline.ResponseBodyPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline)    at Azure.Core.Pipeline.LoggingPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline, Boolean async)
at Azure.Core.Pipeline.LoggingPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline)    at Azure.Core.Pipeline.RetryPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline, Boolean async)<---
---> (Inner Exception #3) Azure.RequestFailedException: An error occurred while sending the request.
---> System.Net.Http.HttpRequestException: An error occurred while sending the request.
---> System.IO.IOException: Unable to read data from the transport connection: 既存の接続はリモート ホストに強制的に切断されました。.
---> System.Net.Sockets.SocketException (10054): 既存の接続はリモート ホストに強制的に切断されました。
--- End of inner exception stack trace ---
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.GetResult(Int16 token)
at System.Net.Http.HttpConnection.FillAsync()
at System.Net.Http.HttpConnection.ReadNextResponseHeaderLineAsync(Boolean foldedHeadersAllowed)
at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithNtConnectionAuthAsync(HttpConnection connection, HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.FinishSendAsyncUnbuffered(Task1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)    at Azure.Core.Pipeline.HttpClientTransport.ProcessAsync(HttpMessage message)    --- End of inner exception stack trace ---    at Azure.Core.Pipeline.HttpClientTransport.ProcessAsync(HttpMessage message)    at Azure.Core.Pipeline.RequestActivityPolicy.ProcessNextAsync(HttpMessage message, ReadOnlyMemory1 pipeline, Boolean isAsync)
at Azure.Core.Pipeline.RequestActivityPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline, Boolean isAsync)    at Azure.Core.Pipeline.ResponseBodyPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline, Boolean async)
at Azure.Core.Pipeline.ResponseBodyPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline)    at Azure.Core.Pipeline.LoggingPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline, Boolean async)
at Azure.Core.Pipeline.LoggingPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline)    at Azure.Core.Pipeline.RetryPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline, Boolean async)<---
--- End of inner exception stack trace ---
at Azure.Identity.CredentialDiagnosticScope.FailWrapAndThrow(Exception ex)
at Azure.Identity.ManagedIdentityCredential.GetTokenImplAsync(Boolean async, TokenRequestContext requestContext, CancellationToken cancellationToken)
at Azure.Identity.ManagedIdentityCredential.GetTokenAsync(TokenRequestContext requestContext, CancellationToken cancellationToken)
at Azure.Identity.DefaultAzureCredential.GetTokenFromSourcesAsync(TokenCredential[] sources, TokenRequestContext requestContext, Boolean async, CancellationToken cancellationToken)
at Azure.Identity.DefaultAzureCredential.GetTokenImplAsync(Boolean async, TokenRequestContext requestContext, CancellationToken cancellationToken)
at Azure.Identity.CredentialDiagnosticScope.FailWrapAndThrow(Exception ex)
at Azure.Identity.DefaultAzureCredential.GetTokenImplAsync(Boolean async, TokenRequestContext requestContext, CancellationToken cancellationToken)
at Azure.Identity.DefaultAzureCredential.GetTokenAsync(TokenRequestContext requestContext, CancellationToken cancellationToken)
at Azure.Security.KeyVault.ChallengeBasedAuthenticationPolicy.AuthenticateRequestAsync(HttpMessage message, Boolean async, AuthenticationChallenge challenge)
at Azure.Security.KeyVault.ChallengeBasedAuthenticationPolicy.ProcessCoreAsync(HttpMessage message, ReadOnlyMemory1 pipeline, Boolean async)    at Azure.Core.Pipeline.RetryPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline, Boolean async)
at Azure.Core.Pipeline.RetryPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline, Boolean async)    at Azure.Core.Pipeline.HttpPipelineSynchronousPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline)
at Azure.Core.Pipeline.HttpPipelineSynchronousPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline)    at Azure.Core.Pipeline.HttpPipelineSynchronousPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline)
at Azure.Core.Pipeline.HttpPipeline.SendRequestAsync(Request request, CancellationToken cancellationToken)
at Azure.Security.KeyVault.KeyVaultPipeline.SendRequestAsync(Request request, CancellationToken cancellationToken)
at Azure.Security.KeyVault.KeyVaultPipeline.GetPageAsync[T](Uri firstPageUri, String nextLink, Func1 itemFactory, String operationName, CancellationToken cancellationToken)    at Azure.Core.PageResponseEnumerator.FuncAsyncPageable1.AsPages(String continuationToken, Nullable1 pageSizeHint)+MoveNext()    at Azure.Core.PageResponseEnumerator.FuncAsyncPageable1.AsPages(String continuationToken, Nullable1 pageSizeHint)+System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult()    at Azure.AsyncPageable1.GetAsyncEnumerator(CancellationToken cancellationToken)+MoveNext()
at Azure.AsyncPageable1.GetAsyncEnumerator(CancellationToken cancellationToken)+MoveNext()    at Azure.AsyncPageable1.GetAsyncEnumerator(CancellationToken cancellationToken)+System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult()
at Azure.Extensions.AspNetCore.Configuration.Secrets.AzureKeyVaultConfigurationProvider.LoadAsync()
at Azure.Extensions.AspNetCore.Configuration.Secrets.AzureKeyVaultConfigurationProvider.LoadAsync()
at Azure.Extensions.AspNetCore.Configuration.Secrets.AzureKeyVaultConfigurationProvider.Load()
at Microsoft.Extensions.Configuration.ConfigurationRoot..ctor(IList`1 providers)
at Microsoft.Extensions.Configuration.ConfigurationBuilder.Build()
at Microsoft.Extensions.Hosting.HostBuilder.BuildAppConfiguration()
at Microsoft.Extensions.Hosting.HostBuilder.Build()
at MyWebApp.Program.Main(String[] args) in D:\VisualStudio2019\Projects\MyWebApp\MyWebApp\MyWebApp\Program.cs:line 16

BTW, do you mean <IP_ADDRESS>?

I set logging like below:
DefaultAzureCredentialOptions opts = new DefaultAzureCredentialOptions
{
	Diagnostics =
	{
		IsLoggingContentEnabled = true
	}
};
var secretClient = new SecretClient(
	new Uri("https://MyKeyVault.vault.azure.net/"),
	new DefaultAzureCredential(opts));
builder.AddAzureKeyVault(secretClient, new KeyVaultSecretManager());

BTW, do you mean <IP_ADDRESS>?

Yes, I meant to say that IP address.
I think we may be missing one more step on the logging. Can you try adding the following?
// Setup a listener to monitor logged events.
using AzureEventSourceListener listener = AzureEventSourceListener.CreateConsoleLogger();

@christothes, I did it again and got the same log messages. The problem is I don't understand where that listener is referenced in the code? Just initializing it doesn't make a sense to me.

Could you run the following PowerShell command? It will reveal which process is listening on the ip address
Get-Process -Id (Get-NetTCPConnection -IPAddress <IP_ADDRESS>).OwningProcess

@christothes, somehow the error on my PC disappeared, but my coworker still facing the issue. On her computer, when she executed the command, the following error was thrown:

No MSFT_NetTCPConnection objects found with property 'LocalAddress' equal to '<IP_ADDRESS>'.  Verify the
value of the property and retry.

Then, she started our web app in debug mode (from VS2019 pressed F5), and executed the command again. This time she got the following:

Handles  NPM(K)    PM(K)      WS(K)     CPU(s)     Id  SI ProcessName
866      81    77804      68504       0.91  20752   2 iisexpress

Do you see something wrong in here?

@christothes, BTW, in my PC, even after I started my web app, the command throws the error given above.

I'm not sure why iisexpress would be using <IP_ADDRESS>, but this is definitely the source of the problem. As a workaround for local development, you could add the following DefaultAzureCredentialOptions
var options = new DefaultAzureCredentialOptions { ExcludeManagedIdentityCredential = true };

@chamons, thank you for your time. Let's close this issue.


Start with all folds exploded

Does this feature exist in Emacs orgmode core?
N/A
Orgmode link
Probably this is just a missing piece of documentation, but how can I make orgmode to start with all levels expanded. I tried to set vim.opt.foldlevelstart=99 in ~/.vim/plugin/orgmode-settings.lua (which is my configuration of orgmode), but vim still opened .org file with folds closed. Only modeline hardcoding foldlevel helped, but it is not very good strategy.
Feature value
No response
Additional context
No response

I assume you have foldenable set to true by default, so you need to disable it in org filetype if you don't want it:
vim.cmd[[autocmd FileType org setlocal nofoldenable]]

THanks, that works.


DX: rename static fiels used as templates with tpl_ prefix

Rename all reused template(fragments) by prefixing them with "tpl_".
Rename template defined names to match.
Test manually
/claim #101

we already have -templates.html suffix for templates, i am not going to invest resources on renaming a prefix, if a change ought to be made, it should be subfolders, otherwise good to keep as is.


Update cardano-api txout with reference scripts

Update cardano-api's txout data type with reference scripts

bors r+


Create 0000-01-02-ajbrahm.md

layout: slide
title: "Welcome to our second slide!"
Your text
Use the left arrow to go back!


fix: Midnight Ghost Hunt

Description

fix: this pr fixes the -Gamename parameter in the startup command of the egg. (reference)
It also removes unnecessary limitations for the game name string.

Checklist for all submissions

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same update/change?
[x] Have you tested and reviewed your changes with confidence that everything works?
[x] Did you branch your changes and PR from that branch and not from your master branch?

If not, why?:

[x] You verify that the start command applied does not use a shell script

[ ] If some script is needed then it is part of a current yolk or a PR to add one

[x] The egg was exported from the panel

@Toaaa Thank you for your pr, could you please export at least 1 of them from a panel so the timestamp update, you can manually copy that timestamp to the other egg.

@Toaaa Thank you for your pr, could you please export at least 1 of them from a panel so the timestamp update, you can manually copy that timestamp to the other egg.

Sorry, I completely forgot about that 😅

Thank you!


Icons show up as Emojis

Hi, we use the db-ui core in our angular application. We have noticed a few times that the icons are sometimes displayed as Emojis rather than the actual icon. A refresh of the page seems to fix it. The problem is that we can't reproduce it reliably. We just have a few screenshots of it happening:

This is how it is supposed to look:

This is also how it looks 99% of the time. We only had this issue a few times so far and cannot replicate it, though we are pretty sure that it only happened in Safari (mobile and desktop). We have found this article: https://css-tricks.com/text-that-sometimes-turns-to-emojis/
Not sure if it has anything to do with that.
Our assumption was that the font sometimes simply did not load properly and therefore emojis were displayed instead of icons. However, we tried to serve our application with the font missing, which resulted in nothing being displayed in place of the icon. We have never been able to reproduce an emoji appearing.
The application is an Angular 17 app forked from the RI-Angular repo on GitLab (https://git.tech.rz.db.de/db-inner-source/tt-web/referenzimplementierungen/ri-angular).
We know that unfortunately we can't give you many clues and we don't expect you to know exactly what the problem is. However, we wanted to open an issue in case anyone has had the same problem.
Thanks in advance

@dinariox thanks a lot for reporting this. Actually you're already on the correct track – it's WebKit not being able to either load, or process the fonts under specific circumstances and that for the underlaying glyphs would get displayed (on other websites, these might even be rectangles), comparable (not visually, but conceptually) to what you would get on case of images that wouldn't be possible to get loaded (displaying broken images instead).
Unfortunately I'm not aware of any solution for this, not just as it only occurs occasionally, but as well only on WebKit, but also I don't see any possibility to detect this problem and interfere in these cases. The only other possibility would be to insert the icons into the source code directly, but that actually bloats the DOM with unnecessary elements on the other hand.

@mfranzke thank you for the reply. Good to hear that it's really a Safari-only problem which is technically not allowed to use at DB so it isn't that big of an issue. It's a bummer that there's no easy fix but good to know that you're aware!


Support the Google Cloud Vision API

Would be great if this library supported the Google Cloud Vision API: https://cloud.google.com/vision/
Until support is available, are there any suggested Go libraries for interacting with this API?

Oh I found this: https://godoc.org/google.golang.org/api/vision/v1

Sample:
https://github.com/GoogleCloudPlatform/cloud-vision/blob/master/go/label/label.go

Thanks @broady :smile: