bedovyy / ComfyUI_NAIDGenerator

NovelAI Diffusion generator for ComfyUI
GNU General Public License v3.0
42 stars 8 forks source link

429 Client Error: Too Many Requests #6

Closed moon90175 closed 7 months ago

moon90175 commented 7 months ago

Hello. I have successfully generated tens of thousands of images using your node. However, when I just tried to generate an image, I got the following error:

Error occurred when executing GenerateNAID:

429 Client Error: Too Many Requests for url: https://image.novelai.net/ai/generate-image

File "C:\Users\Username\Desktop\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Username\Desktop\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\execution.py", line 81, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Username\Desktop\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Username\Desktop\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_NAIDGenerator\nodes.py", line 224, in generate zipped_bytes = generate_image(self.access_token, positive, model, action, params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Username\Desktop\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_NAIDGenerator\utils.py", line 37, in generate_image response.raise_for_status() File "C:\Users\Username\Desktop\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\python_embeded\Lib\site-packages\requests\models.py", line 1021, in raise_for_status raise HTTPError(http_error_msg, response=self)

I tried restarting or updating NAI_ACCESS_TOKEN, But the error still occurred. Is there a solution? It would be nice if it could be fixed.

moon90175 commented 7 months ago

I found out that it was my account that was the problem, Novelai seems to be starting to limit rate for users who generate images in large numbers. after using a new account everything is fine again!