HTTPError: 402 Client Error: Payment Required for url

Hi, I’m doing “Building RAG Agents with LLMs” course, and when trying to run notebook I keep getting HTTPError: 402 Client Error: Payment Required for url.
I even tried using solution that is provided, but error still persists:

---------------------------------------------------------------------------
HTTPError                                 Traceback (most recent call last)
Cell In[6], line 50
     47 response = requests.post(invoke_url, headers=headers, json=payload, stream=True)
     49 ## If your response is an error message, this will raise an exception in Python
---> 50 response.raise_for_status()
     52 ## If the post request is honored, you should be able to iterate over 
     53 for line in response.iter_lines():

File /usr/local/lib/python3.11/site-packages/requests/models.py:1021, in Response.raise_for_status(self)
   1016     http_error_msg = (
   1017         f"{self.status_code} Server Error: {reason} for url: {self.url}"
   1018     )
   1020 if http_error_msg:
-> 1021     raise HTTPError(http_error_msg, response=self)

HTTPError: 402 Client Error: Payment Required for url: https://api.nvcf.nvidia.com/v2/nvcf/pexec/functions/e0bb7fb9-5333-4a27-8534-c6288f921d3f

Hello,

This issue will require one of the DLI engineers to investigate. I have reached out to them to look at this ASAP.

Thanks for your patience,
Tom

1 Like

Any update on this?

Hi @nikola2, I have pinged the team for an update.

1 Like

Hey @nikola2 . We do not have a scalable solution for this course yet (partially why it’s free) since the API keys cannot be topped up without signing up for the NVAIE 90-day trial. One option is to do that, which will give you a 4K-request top-up. Top-right of build.nvidia.com:
image

If this process doesn’t work, please DM me and I can look into alternative solutions.

It works now, thanks!

1 Like

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.