Skip to content

why get function always return DataLinkError: (Status 410) #48

Open

Description

@ChandlerBBT

image

however, I could get data by the get_table function, can't determine what's going on.

image

Activity

  1. clientsuccessnasdaq commented on Sep 29, 2024

    @clientsuccessnasdaq
  2. Josuerinho commented on Sep 29, 2024

    @Josuerinho

    Hi! I'm getting exactly the same problem. The nasdaqdatalink.get() function never worked no matter what I tried. I've tried to find the problem cause but couldn't figure it out. I've even changed my API key just in case. I created my account a day ago so not sure if this could be an issue with needing some time to fully activate it but in that case, I'd expect nasdaqdatalink.get_table('ZACKS/FC', ticker='AAPL') to not work either. So no idea...
    Screenshot 2024-09-29 at 3 51 57 PM

  3. ChandlerBBT commented on Sep 30, 2024

    @ChandlerBBT
    Author

    Hi! I'm getting exactly the same problem. The nasdaqdatalink.get() function never worked no matter what I tried. I've tried to find the problem cause but couldn't figure it out. I've even changed my API key just in case. I created my account a day ago so not sure if this could be an issue with needing some time to fully activate it but in that case, I'd expect nasdaqdatalink.get_table('ZACKS/FC', ticker='AAPL') to not work either. So no idea... Screenshot 2024-09-29 at 3 51 57 PM

    Thought it was just my bad luck, seems got a real problem somewhere.

  4. jhavens1566 commented on Oct 17, 2024

    @jhavens1566

    Also receiving this error, interestingly get_table() seems to work

    Here's a stack trace:

    >>> data = nasdaqdatalink.get('NSE/OIL')
    Traceback (most recent call last):
      File "/home/johnathon/.local/lib/python3.10/site-packages/requests/models.py", line 974, in json
        return complexjson.loads(self.text, **kwargs)
      File "/usr/lib/python3/dist-packages/simplejson/__init__.py", line 525, in loads
        return _default_decoder.decode(s)
      File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 370, in decode
        obj, end = self.raw_decode(s)
      File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 400, in raw_decode
        return self.scan_once(s, idx=_w(s, idx).end())
    simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "/home/johnathon/.local/lib/python3.10/site-packages/nasdaqdatalink/connection.py", line 90, in parse
        return response.json()
      File "/home/johnathon/.local/lib/python3.10/site-packages/requests/models.py", line 978, in json
        raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
    requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "/home/johnathon/.local/lib/python3.10/site-packages/nasdaqdatalink/get.py", line 48, in get
        data = Dataset(dataset_args['code']).data(params=kwargs, handle_column_not_found=True)
      File "/home/johnathon/.local/lib/python3.10/site-packages/nasdaqdatalink/model/dataset.py", line 47, in data
        return Data.all(**updated_options)
      File "/home/johnathon/.local/lib/python3.10/site-packages/nasdaqdatalink/operations/list.py", line 15, in all
        r = Connection.request('get', path, **options)
      File "/home/johnathon/.local/lib/python3.10/site-packages/nasdaqdatalink/connection.py", line 40, in request
        return cls.execute_request(http_verb, abs_url, **options)
      File "/home/johnathon/.local/lib/python3.10/site-packages/nasdaqdatalink/connection.py", line 52, in execute_request
        cls.handle_api_error(response)
      File "/home/johnathon/.local/lib/python3.10/site-packages/nasdaqdatalink/connection.py", line 96, in handle_api_error
        error_body = cls.parse(resp)
      File "/home/johnathon/.local/lib/python3.10/site-packages/nasdaqdatalink/connection.py", line 92, in parse
        raise DataLinkError(http_status=response.status_code, http_body=response.text)
    nasdaqdatalink.errors.data_link_error.DataLinkError: (Status 410) Something went wrong. Please try again. If you continue to have problems, please contact us at connect@data.nasdaq.com.
    
  5. clientsuccessnasdaq commented on Oct 17, 2024

    @clientsuccessnasdaq
  6. clientsuccessnasdaq commented on Oct 17, 2024

    @clientsuccessnasdaq
  7. rwideman commented on Oct 18, 2024

    @rwideman

    Getting the same here. nasdaqdatalink.get() fails but nasdaqdatalink.get_table() is successful. Very frustrating as even the official documentation uses nasdaqdatalink.get().

  8. clientsuccessnasdaq commented on Oct 18, 2024

    @clientsuccessnasdaq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions