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

bug in download from lib #126

Open
gschwend opened this issue Dec 10, 2024 · 0 comments
Open

bug in download from lib #126

gschwend opened this issue Dec 10, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@gschwend
Copy link
Member

pz_server.download_product(14, save_in=".")
Connecting to PZ Server...
Error: <!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8">
  <title>Page not found at /api/products/14/download</title>
  <meta name="robots" content="NONE,NOARCHIVE">
  <style>
    html * { padding:0; margin:0; }
    body * { padding:10px 20px; }
    body * * { padding:0; }
    body { font-family: sans-serif; background:#eee; color:#000; }
    body > :where(header, main, footer) { border-bottom:1px solid #ddd; }
    h1 { font-weight:normal; margin-bottom:.4em; }
    h1 small { font-size:60%; color:#666; font-weight:normal; }
    table { border:none; border-collapse: collapse; width:100%; }
    td, th { vertical-align:top; padding:2px 3px; }
    th { width:12em; text-align:right; color:#666; padding-right:.5em; }
    #info { background:#f6f6f6; }
    #info ol { margin: 0.5em 4em; }
    #info ol li { font-family: monospace; }
    #summary { background: #ffc; }
    #explanation { background:#eee; border-bottom: 0px none; }
    pre.exception_value { font-family: sans-serif; color: #575757; font-size: 1.5em; margin: 10px 0 10px 0; }
  </style>
</head>
<body>
  <header id="summary">
    <h1>Page not found <small>(404)</small></h1>
    
    <table class="meta">
      <tr>
        <th scope="row">Request Method:</th>
        <td>GET</td>
      </tr>
      <tr>
        <th scope="row">Request URL:</th>
        <td>[https://pz-server-dev.linea.org.br/api/products/14/download</td](https://pz-server-dev.linea.org.br/api/products/14/download%3C/td)>
      </tr>
      
    </table>
  </header>

  <main id="info">
    
      <p>
      Using the URLconf defined in <code>pzserver.urls</code>,
      Django tried these URL patterns, in this order:
      </p>
      <ol>
        
          <li>
            
              <code>
                admin/
                
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^users/$
                [name='users-list']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^users\.(?P&lt;format&gt;[a-z0-9]+)/?$
                [name='users-list']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^users/(?P&lt;pk&gt;[^/.]+)/$
                [name='users-detail']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^users/(?P&lt;pk&gt;[^/.]+)\.(?P&lt;format&gt;[a-z0-9]+)/?$
                [name='users-detail']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^releases/$
                [name='releases-list']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^releases\.(?P&lt;format&gt;[a-z0-9]+)/?$
                [name='releases-list']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^releases/(?P&lt;pk&gt;[^/.]+)/$
                [name='releases-detail']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^releases/(?P&lt;pk&gt;[^/.]+)\.(?P&lt;format&gt;[a-z0-9]+)/?$
                [name='releases-detail']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^releases/(?P&lt;pk&gt;[^/.]+)/api_schema/$
                [name='releases-api-schema']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^releases/(?P&lt;pk&gt;[^/.]+)/api_schema\.(?P&lt;format&gt;[a-z0-9]+)/?$
                [name='releases-api-schema']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^product-types/$
                [name='product_types-list']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^product-types\.(?P&lt;format&gt;[a-z0-9]+)/?$
                [name='product_types-list']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^product-types/(?P&lt;pk&gt;[^/.]+)/$
                [name='product_types-detail']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^product-types/(?P&lt;pk&gt;[^/.]+)\.(?P&lt;format&gt;[a-z0-9]+)/?$
                [name='product_types-detail']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^product-types/(?P&lt;pk&gt;[^/.]+)/api_schema/$
                [name='product_types-api-schema']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^product-types/(?P&lt;pk&gt;[^/.]+)/api_schema\.(?P&lt;format&gt;[a-z0-9]+)/?$
                [name='product_types-api-schema']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^products/$
                [name='products-list']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^products\.(?P&lt;format&gt;[a-z0-9]+)/?$
                [name='products-list']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^products/pending_publication/$
                [name='products-pending-publication']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^products/pending_publication\.(?P&lt;format&gt;[a-z0-9]+)/?$
                [name='products-pending-publication']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^products/(?P&lt;pk&gt;[^/.]+)/$
                [name='products-detail']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^products/(?P&lt;pk&gt;[^/.]+)\.(?P&lt;format&gt;[a-z0-9]+)/?$
                [name='products-detail']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^products/(?P&lt;pk&gt;[^/.]+)/api_schema/$
                [name='products-api-schema']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^products/(?P&lt;pk&gt;[^/.]+)/api_schema\.(?P&lt;format&gt;[a-z0-9]+)/?$
                [name='products-api-schema']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^products/(?P&lt;pk&gt;[^/.]+)/download/$
                [name='products-download']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^products/(?P&lt;pk&gt;[^/.]+)/download\.(?P&lt;format&gt;[a-z0-9]+)/?$
                [name='products-download']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^products/(?P&lt;pk&gt;[^/.]+)/download_main_file/$
                [name='products-download-main-file']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^products/(?P&lt;pk&gt;[^/.]+)/download_main_file\.(?P&lt;format&gt;[a-z0-9]+)/?$
                [name='products-download-main-file']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^products/(?P&lt;pk&gt;[^/.]+)/main_file_info/$
                [name='products-main-file-info']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^products/(?P&lt;pk&gt;[^/.]+)/main_file_info\.(?P&lt;format&gt;[a-z0-9]+)/?$
                [name='products-main-file-info']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^products/(?P&lt;pk&gt;[^/.]+)/read_data/$
                [name='products-read-data']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^products/(?P&lt;pk&gt;[^/.]+)/read_data\.(?P&lt;format&gt;[a-z0-9]+)/?$
                [name='products-read-data']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^products/(?P&lt;pk&gt;[^/.]+)/registry/$
                [name='products-registry']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^products/(?P&lt;pk&gt;[^/.]+)/registry\.(?P&lt;format&gt;[a-z0-9]+)/?$
                [name='products-registry']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^products-specz/$
                [name='products_specz-list']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^products-specz\.(?P&lt;format&gt;[a-z0-9]+)/?$
                [name='products_specz-list']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^products-specz/(?P&lt;pk&gt;[^/.]+)/$
                [name='products_specz-detail']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^products-specz/(?P&lt;pk&gt;[^/.]+)\.(?P&lt;format&gt;[a-z0-9]+)/?$
                [name='products_specz-detail']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^product-contents/$
                [name='product_contents-list']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^product-contents\.(?P&lt;format&gt;[a-z0-9]+)/?$
                [name='product_contents-list']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^product-contents/(?P&lt;pk&gt;[^/.]+)/$
                [name='product_contents-detail']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^product-contents/(?P&lt;pk&gt;[^/.]+)\.(?P&lt;format&gt;[a-z0-9]+)/?$
                [name='product_contents-detail']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^product-files/$
                [name='product_files-list']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^product-files\.(?P&lt;format&gt;[a-z0-9]+)/?$
                [name='product_files-list']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^product-files/(?P&lt;pk&gt;[^/.]+)/$
                [name='product_files-detail']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^product-files/(?P&lt;pk&gt;[^/.]+)\.(?P&lt;format&gt;[a-z0-9]+)/?$
                [name='product_files-detail']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^pipelines/$
                [name='pipelines-list']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^pipelines\.(?P&lt;format&gt;[a-z0-9]+)/?$
                [name='pipelines-list']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^pipelines/(?P&lt;pk&gt;[^/.]+)/$
                [name='pipelines-detail']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^pipelines/(?P&lt;pk&gt;[^/.]+)\.(?P&lt;format&gt;[a-z0-9]+)/?$
                [name='pipelines-detail']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^pipelines/(?P&lt;pk&gt;[^/.]+)/api_schema/$
                [name='pipelines-api-schema']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^pipelines/(?P&lt;pk&gt;[^/.]+)/api_schema\.(?P&lt;format&gt;[a-z0-9]+)/?$
                [name='pipelines-api-schema']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^processes/$
                [name='processes-list']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^processes\.(?P&lt;format&gt;[a-z0-9]+)/?$
                [name='processes-list']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^processes/(?P&lt;pk&gt;[^/.]+)/$
                [name='processes-detail']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^processes/(?P&lt;pk&gt;[^/.]+)\.(?P&lt;format&gt;[a-z0-9]+)/?$
                [name='processes-detail']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^processes/(?P&lt;pk&gt;[^/.]+)/api_schema/$
                [name='processes-api-schema']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^processes/(?P&lt;pk&gt;[^/.]+)/api_schema\.(?P&lt;format&gt;[a-z0-9]+)/?$
                [name='processes-api-schema']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^processes/(?P&lt;pk&gt;[^/.]+)/stop/$
                [name='processes-stop']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                ^processes/(?P&lt;pk&gt;[^/.]+)/stop\.(?P&lt;format&gt;[a-z0-9]+)/?$
                [name='processes-stop']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                
                [name='api-root']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/
                
              </code>
            
              <code>
                &lt;drf_format_suffix:format&gt;
                [name='api-root']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/auth/
                
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/obtain_token/
                
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/get_token/
                [name='get_token']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/csrf_oauth/
                
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/logged_user/
                [name='logged_user']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/logout/
                [name='logout']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/schema/
                [name='schema']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/swagger/
                [name='swagger']
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/redoc/
                [name='redoc']
              </code>
            
          </li>
        
          <li>
            
              <code>
                saml2/
                
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/sysinfo/
                
              </code>
            
          </li>
        
          <li>
            
              <code>
                api/orch_pipelines/
                
              </code>
            
          </li>
        
      </ol>
      <p>
        
          The current path, <code>api/products/14/download</code>,
        
        didn’t match any of these.
      </p>
    
  </main>

  <footer id="explanation">
    <p>
      You’re seeing this error because you have <code>DEBUG = True</code> in
      your Django settings file. Change that to <code>False</code>, and Django
      will display a standard 404 page.
    </p>
  </footer>
</body>
</html>
@gschwend gschwend added the bug Something isn't working label Dec 10, 2024
@github-project-automation github-project-automation bot moved this to 📋 Backlog in Software Dec 10, 2024
@gschwend gschwend moved this from 📋 Backlog to 🔖 To do in Software Dec 10, 2024
@gschwend gschwend moved this from 🔖 To do to ✅ Done in Software Dec 12, 2024
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
Status: ✅ Done
Development

No branches or pull requests

2 participants