data-link-python icon indicating copy to clipboard operation
data-link-python copied to clipboard

why get function always return DataLinkError: (Status 410)

Open ChandlerBBT opened this issue 1 year ago • 8 comments

image

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

image

ChandlerBBT avatar Sep 29 '24 15:09 ChandlerBBT

-- Please reply above this line --

Dear Nasdaq/data-Link-Python,

Thank you for contacting the Nasdaq Data Client Success Team.

Your email is very important to us. Urgent production issues will be addressed as soon as possible during the hours of 4am to 6pm ET Monday to Friday. General inquiries will be addressed within 1 to 2 business days.

To efficiently support your request, please include relevant details such as the data product/feed you are inquiring about.

Kind regards, Nasdaq Data Client Success

[1]

Links:

[1] https://www.nasdaq.com/

clientsuccessnasdaq avatar Sep 29 '24 15:09 clientsuccessnasdaq

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

Josuerinho avatar Sep 29 '24 19:09 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

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

ChandlerBBT avatar Sep 30 '24 03:09 ChandlerBBT

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].

jhavens1566 avatar Oct 17 '24 01:10 jhavens1566

-- Please reply above this line --

Dear Nasdaq/data-Link-Python,

Thank you for contacting the Nasdaq Data Client Success Team.

Your email is very important to us. Urgent production issues will be addressed as soon as possible during the hours of 4am to 6pm ET Monday to Friday.

To efficiently support your request, please include relevant details such as the data product/feed you are inquiring about.

Kind regards, Nasdaq Data Client Success

[1]

Links:

[1] https://www.nasdaq.com/

clientsuccessnasdaq avatar Oct 17 '24 01:10 clientsuccessnasdaq

-- Please reply above this line --

        Hello,

Thank you for reaching out.

To help us look more closely into your inquiry, could you please send us an email at @.*** [1]? This will allow us to assist you best.

Best regards, Nasdaq Data Link

Links:

[1] @.***

KIM LIRA Nasdaq Data Client Success 

[1]

How would you rate my reply? Great [2]    Okay [3]    Not Good [4]

Links:

[1] https://www.nasdaq.com/ [2] https://secure.helpscout.net/satisfaction/740412352/record/8254906863/1/ [3] https://secure.helpscout.net/satisfaction/740412352/record/8254906863/2/ [4] https://secure.helpscout.net/satisfaction/740412352/record/8254906863/3/

    > On Thu, Oct 17, 2024 at 9:04 AM +08, Nasdaq/data-Link-Python ***@***.***&gt; wrote:

WARNING - EXTERNAL EMAIL; EXERCISE CAUTION.

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

Reply to this email directly, view it on GitHub [1], or unsubscribe [2]. You are receiving this because you commented.Message ID: @.***>

Links:

[1] https://github.com/Nasdaq/data-link-python/issues/48#issuecomment-2418273490 [2] https://github.com/notifications/unsubscribe-auth/AWYQ645BLP24SIOPPBAM2WTZ34EEBAVCNFSM6AAAAABPB2D5M2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJYGI3TGNBZGA

clientsuccessnasdaq avatar Oct 17 '24 01:10 clientsuccessnasdaq

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

rwideman avatar Oct 18 '24 20:10 rwideman

-- Please reply above this line --

        Hello,

Thank you for reaching out.

To help us look more closely into your inquiry, could you please send us an email at @.*** [1]? This will allow us to assist you best.

Best regards, Nasdaq Data Link

Links:

[1] @.***

KIM LIRA Nasdaq Data Client Success 

[1]

How would you rate my reply? Great [2]    Okay [3]    Not Good [4]

Links:

[1] https://www.nasdaq.com/ [2] https://secure.helpscout.net/satisfaction/740919084/record/8261187458/1/ [3] https://secure.helpscout.net/satisfaction/740919084/record/8261187458/2/ [4] https://secure.helpscout.net/satisfaction/740919084/record/8261187458/3/

    > On Sat, Oct 19, 2024 at 4:22 AM +08, Nasdaq/data-Link-Python ***@***.***&gt; wrote:

WARNING - EXTERNAL EMAIL; EXERCISE CAUTION.

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

Reply to this email directly, view it on GitHub [1], or unsubscribe [2]. You are receiving this because you commented.Message ID: @.***>

Links:

[1] https://github.com/Nasdaq/data-link-python/issues/48#issuecomment-2423176701 [2] https://github.com/notifications/unsubscribe-auth/AWYQ643UQPWDCY3LCEBNBJLZ4FUYDAVCNFSM6AAAAABPB2D5M2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRTGE3TMNZQGE

clientsuccessnasdaq avatar Oct 18 '24 20:10 clientsuccessnasdaq