Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolver a exceção Unexpected error 'unhashable type: 'BaseList''. #295

Open
robertatakenaka opened this issue Aug 11, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@robertatakenaka
Copy link
Member

Descrição do problema

Ao obter os valores de scielo_pids, está desconsiderando que o conteúdo da chave other é uma lista e não uma string. Sendo assim ao executar set(scielo_pids.values()) ocorre o erro Unexpected error 'unhashable type: 'BaseList'.

[2021-08-09 12:10:58,186] {sync_kernel_to_website_operations.py:579} INFO - Get doi from kernel
[2021-08-09 12:10:58,191] {sync_kernel_to_website_operations.py:558} INFO - Repeated document BtX6hdVxXbCcNH6PDFfBMTp / S0001-376520210007001002 /  / {'v2': 'S0001-376520210007001002', 'v3': 'BtX6hdVxXbCcNH6PDFfBMTp', 'other': ['S0001-376520210007001002', 'BtX6hdVxXbCcNH6PDFfBMTp']}
[2021-08-09 12:10:58,191] {sync_kernel_to_website_operations.py:500} ERROR - Could not register document 'QyqV8fRDnbw6CqNjxpSMWtJ'. Unexpected error 'unhashable type: 'BaseList''.

Passos para reproduzir o problema

  1. Acesse o airflow
  2. Insira QyqV8fRDnbw6CqNjxpSMWtJ na lista de orfãos
  3. Execute a dag de sincronização do kernel para o site
  4. Observe o erro apresentado

Comportamento esperado

A exceção não deve mais ocorrer e o documento QyqV8fRDnbw6CqNjxpSMWtJ é atualizado

Screenshots ou vídeos

n/a

Anexos

n/a

Ambiente utilizado

n/a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant