Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Submit_Workflow hangs on submission

Abierto
#4 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
55/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
python

Línea de trabajo

Empieza en _open_auth_url del issue y sigue cómo CallbackHandler proporciona auth_code a httpd.handle_request(). Reproduce el flujo de envío e inspecciona por qué el callback de localhost no se completa. Se considera terminado cuando la autorización vuelve correctamente, AUTH está presente en el entorno y en src/.env, y el envío continúa en lugar de quedarse bloqueado.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

It hangs when attempting to submit to a namespace. URL opens, nothing is displayed. Env file created, but remains empty of info (just null strings)

  def _open_auth_url(auth_url: str, port: int) -> None:
      httpd = _ReusingHTTPServer(("localhost", port), CallbackHandler)
      webbrowser.open(auth_url)
      try:
          print(
              f"Please authorize the application in your browser. If it does not open automatically, visit: {auth_url}"
          )
          httpd.handle_request()
          os.environ["AUTH"] = httpd.auth_code
          dotenv.set_key("src/.env", "AUTH", httpd.auth_code)
          
      except OSError:
          print("ERROR: Port in use. Please restart your terminal.")
          os.environ["AUTH"] = ""
          print("ERROR: Port in use. Please restart your terminal.")
          exit(1)
      finally:
          print("Shutting down the server...")
          httpd.socket.shutdown(socket.SHUT_RDWR)
          httpd.server_close()

output:

(node:5049) [DEP0169] DeprecationWarning: url.parse() behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for url.parse() vulnerabilities.
(Use node --trace-deprecation ... to show where the warning was created)
Please authorize the application in your browser. If it does not open automatically, visit: https://identity.diamond.ac.uk/realms/dls/protocol/openid-connect/auth?client_id=workflows-cli&response_type=code&redirect_uri=http://localhost:8000/&scope=openid posix-uid profile email fedid&state=&nonce=&code_challenge=JVZHGbR1yQmIgn4MniLQK9xVmvIujWozvSgf0F6zhQI&code_challenge_method=S256

Seems to be hanging on handle request?

Acceptance Criteria

  • Specific criteria that will be used to judge if the issue is fixed
Lenguaje dominante
Python
Estrellas
0
Forks
0
Merge medio
4 min
PR fusionados (30 d)
1

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de DiamondLightSource/python-workflow-submitter

Todos los issues de DiamondLightSource/python-workflow-submitter

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.