pa CLI cannot reach default-prefixed environments (DNS ENOTFOUND); Dataverse connector rejects current as organization in default env
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 22/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- nodejs, powershell, typescript
Línea de trabajo
The payload names no file in this repository. The first failure is in the pa app init environment lookup in @microsoft/power-apps-cli 1.2.0, which builds the per-environment hostname without the default-environment prefix. Reproduce with pa app init -e <default-env-id> and compare the host it requests with the one that resolves. The second is the ListRecordsWithOrganization call with organization "current" in the Dataverse connector. Done means the default environment resolves and the connector accepts "current" or documents that it does not.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Issue 1: pa CLI network failures — wrong per-env hostname + IPv6
CLI: @microsoft/power-apps-cli 1.2.0 (global pa and npx --no-install power-apps, identical result), Node v24.18.1, Windows.
Repro (a) — wrong hostname for default env:
pa app init -n "my-app" -e c3df2a3c-e602-4ef6-b29d-3bac03b3991c
Fails after ~50ms:
Network request failed for GET https://c3df2a3ce6024ef6b29d3bac03b399.1c.environment.api.powerplatform.com/powerapps/environment?api-version=1&...
Details: getaddrinfo ENOTFOUND ... Non-existent domain
The correct host for this (default) environment carries the env prefix: defaultc3df2a3c...1c.environment.api.powerplatform.com (verified resolving, v4+v6). The CLI omits the prefix. Verified the constructed name is genuinely NXDOMAIN, not a local DNS issue. pa app init against a normal env in the same tenant works. (Worked around creation via deprecated pac code init, whose endpoints resolve correctly.)
Repro (b) — pa app push intermittently fails, IPv4 fixes it:
pa app push sometimes fails with network errors. Forcing IPv4 makes it reliable:
$env:NODE_OPTIONS="--dns-result-order=ipv4first"
pa app push # consistently succeeds
DNS returns IPv6 (2603:1061:...) first for the API endpoints and the IPv6 path appears broken from this network — Node tries IPv6 first by default but the CLI surfaces a hard failure instead of falling back.
Expected: CLI resolves the environment endpoint (with prefix) before calling it, and either prefers IPv4 or retries across address families instead of hard-failing.
Issue 2: "current" as Dataverse connector organization fails only in default env
MicrosoftDataverseService.ListRecordsWithOrganization("current", "accounts", ...) fails at the connector runtime only in the default environment:
{"Message":"Invalid organization URL '' provided.","OperationId":"ListRecordsWithOrganization", ...}
Verified matrix (same call, same connector shared_commondataserviceforapps):
| App | Env | "current" |
Full org URL |
|---|---|---|---|
| Solution-imported app | normal env | ok | ok |
| Solution-imported app | default env | fails | ok |
| Direct-created app (fresh portal connection, no solution involved) | default env | fails | ok |
Just a small observation from the default environment. The official connector reference documents the parameter only as Environment | organization | True | string | Choose an environment — no accepted value format, no "current" keyword anywhere. On my end I worked around it with plain ListRecords, which binds to the connection's own environment with no organization parameter.
Versions: @microsoft/power-apps 1.5.0, @microsoft/power-apps-cli 1.2.0, @microsoft/power-apps-vite 1.0.2.
- Lenguaje dominante
- TypeScript
- Estrellas
- 516
- Forks
- 145
- Merge medio
- 23 h 41 min
- PR fusionados (30 d)
- 18
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de microsoft/PowerAppsCodeApps
-
bug
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
microsoft/PowerAppsCodeApps#499 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 5/5 Más de una semana Aptitud para principiantes 45/100
microsoft/PowerAppsCodeApps#498 ·
Los mantenedores suelen responder en 1 día
-
[Bug] shared_odbc with on-prem fails pointing to placeholder URLPosiblemente ocupada @tonystevenj la tomó hace 7 días. Abiertobug
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
microsoft/PowerAppsCodeApps#465 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
[Bug] Power App Code App doesn't run in China 21V cloud even with the toggle enabledPosiblemente ocupada @tonystevenj la tomó hace 9 días. Abiertobug product team investigating
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
microsoft/PowerAppsCodeApps#463 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
microsoft/PowerAppsCodeApps#461 ·
Los mantenedores suelen responder en 1 día
Todos los issues de microsoft/PowerAppsCodeApps
Issues similares
-
"Contains" page watch never matches when its text has a trailing spacePosiblemente ocupada @RaphaelFakhri la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
CopilotKit/openmuse#184 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
bootstrap-vue-next/bootstrap-vue-next#3357 ·
Los mantenedores suelen responder en 1 día
-
[quality] tide.ts: six mutation survivors in the merge-queue gate, draft refusal, fork-403 workflow-file diagnosis and getPull's fork flag are unpinned by any testPosiblemente ocupada @hivecommons-hive la tomó hoy. Abiertoagent/quality needs-kind stage/040-covered-by-pr testing
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
cncf/prow-github-actions#517 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
Unsampled pageload span is profiled when profileLifecycle is 'trace' (browser UI profiling)Posiblemente ocupada @Jxxunnn la tomó hoy. AbiertoBrowser Waiting for: Product Owner
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
getsentry/sentry-javascript#25497 · 1 comentario ·
Los mantenedores suelen responder en 1 día