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

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

Open
ChandlerBBT opened this issue Sep 29, 2024 · 8 comments
Open

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

ChandlerBBT opened this issue Sep 29, 2024 · 8 comments

Comments

@ChandlerBBT
Copy link

image

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

image

@clientsuccessnasdaq
Copy link

clientsuccessnasdaq commented Sep 29, 2024 via email

@Josuerinho
Copy link

Josuerinho commented Sep 29, 2024

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

@ChandlerBBT
Copy link
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.

@jhavens1566
Copy link

jhavens1566 commented Oct 17, 2024

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 [email protected].

@clientsuccessnasdaq
Copy link

clientsuccessnasdaq commented Oct 17, 2024 via email

@clientsuccessnasdaq
Copy link

clientsuccessnasdaq commented Oct 17, 2024 via email

@rwideman
Copy link

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

@clientsuccessnasdaq
Copy link

clientsuccessnasdaq commented Oct 18, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants