question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

{"code":400,"errorType":"BAD_REQUEST","title":"Length of stream does not match given range"}

See original GitHub issue

Another random error. It seems that on upload.

Unexpected error occurred in Neptune background thread: Killing Neptune asynchronous thread. All data is safe on disk and can be later synced manually using `neptune sync` command.
Exception in thread Thread-10:
Traceback (most recent call last):
  File "/home/wojciech/miniconda3/envs/nori/lib/python3.8/site-packages/neptune/new/internal/backends/utils.py", line 61, in wrapper
    return func(*args, **kwargs)
  File "/home/wojciech/miniconda3/envs/nori/lib/python3.8/site-packages/neptune/new/internal/backends/hosted_file_operations.py", line 183, in upload_raw_data
    response.raise_for_status()
  File "/home/wojciech/miniconda3/envs/nori/lib/python3.8/site-packages/requests/models.py", line 943, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error:  for url: https://app.neptune.ai//api/leaderboard/v1/attributes/upload?experimentId=5dbc90f0-596d-4c1b-a51d-fa65e92021c3&attribute=results%2F4%2Fy&ext=xr.nc

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/wojciech/miniconda3/envs/nori/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/home/wojciech/miniconda3/envs/nori/lib/python3.8/site-packages/neptune/new/internal/threading/daemon.py", line 54, in run
    self.work()
  File "/home/wojciech/miniconda3/envs/nori/lib/python3.8/site-packages/neptune/new/internal/operation_processors/async_operation_processor.py", line 181, in work
    self.process_batch(batch, version)
  File "/home/wojciech/miniconda3/envs/nori/lib/python3.8/site-packages/neptune/new/internal/threading/daemon.py", line 78, in wrapper
    result = func(self_, *args, **kwargs)
  File "/home/wojciech/miniconda3/envs/nori/lib/python3.8/site-packages/neptune/new/internal/operation_processors/async_operation_processor.py", line 191, in process_batch
    result = self._processor._backend.execute_operations(self._processor._run_uuid, batch)
  File "/home/wojciech/miniconda3/envs/nori/lib/python3.8/site-packages/neptune/new/internal/backends/hosted_neptune_backend.py", line 294, in execute_operations
    self._execute_upload_operations(run_uuid=run_uuid,
  File "/home/wojciech/miniconda3/envs/nori/lib/python3.8/site-packages/neptune/new/internal/backends/hosted_neptune_backend.py", line 310, in _execute_upload_operations
    error = upload_file_attribute(
  File "/home/wojciech/miniconda3/envs/nori/lib/python3.8/site-packages/neptune/new/internal/backends/hosted_file_operations.py", line 54, in upload_file_attribute
    _upload_loop(file_chunk_stream=FileChunkStream(upload_entry),
  File "/home/wojciech/miniconda3/envs/nori/lib/python3.8/site-packages/neptune/new/internal/backends/hosted_file_operations.py", line 147, in _upload_loop
    result = _upload_loop_chunk(chunk, file_chunk_stream, **kwargs)
  File "/home/wojciech/miniconda3/envs/nori/lib/python3.8/site-packages/neptune/new/internal/backends/hosted_file_operations.py", line 165, in _upload_loop_chunk
    return upload_raw_data(data=chunk.get_data(), headers=headers, **kwargs)
  File "/home/wojciech/miniconda3/envs/nori/lib/python3.8/site-packages/neptune/new/internal/backends/utils.py", line 96, in wrapper
    raise ClientHttpError(status_code, e.response.text) from e
neptune.new.exceptions.ClientHttpError: 

----ClientHttpError-----------------------------------------------------------------------

Neptune server returned status 400.

Server response was:
{"code":400,"errorType":"BAD_REQUEST","title":"Length of stream does not match given range"}

Verify the correctness of your call or contact Neptune support.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
aniezurawskicommented, May 26, 2021

Should not occur anymore in 0.9.15.

0reactions
ijmiller2commented, Jul 1, 2021

Hi @aniezurawski, thanks for the reply.

This is the full error I’m getting:

Error in py_call_impl(callable, dots$args, dots$keywords) : 
  NeptuneException: 

----ClientHttpError-----------------------------------------------------------------------

Neptune server returned status 400.

Server response was:
{"code":400,"errorType":"BAD_REQUEST","title":"Length of stream does not match given range"}

Verify the correctness of your call or contact Neptune support.

Need help?-> https://docs.neptune.ai/getting-started/getting-help


Detailed traceback:
  File "/fsx/home/imiller/.conda/envs/imiller/lib/python3.8/site-packages/neptune/__init__.py", line 226, in create_experiment
    return project.create_experiment(
  File "/fsx/home/imiller/.conda/envs/imiller/lib/python3.8/site-packages/neptune/projects.py", line 442, in create_experiment
    self._backend.upload_source_code(experiment, source_target_pairs)
  File "/fsx/home/imiller/.conda/envs/imiller/lib/python3.8/site-packages/neptune/internal/api_clients/hosted_api_clients/hosted_alpha_leaderboard_api_client.py", line 194, in
Calls: create_experiment -> <Anonymous> -> py_call_impl
Execution halted
Read more comments on GitHub >

github_iconTop Results From Across the Web

Find which element of the stream does not match the given ...
println(n + "is Odd"); });. Is there a way to figure out which elements fails the predicate in the allmatch when it returns...
Read more >
Solved: Sheet name does not match a sheet or range name
Hi,. I'm trying to get the first sheet in a excel file into the workflow. I used directory tool to get all the...
Read more >
Matching Numeric Ranges with a Regular Expression
Detailed example of building a regex to match a number in a given range of numbers. ... (or no character at all) to...
Read more >
Range Addresses (sed, a stream editor)
An address range can be specified by specifying two addresses separated by a comma ( , ). An address range matches lines starting...
Read more >
Everything you need to know about Regular Expressions
Most characters in a regex pattern do not have a special meaning, they simply match themselves. Consider the following pattern:.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found