[GH-ISSUE #225] AI News Writer - News Report Fails with "API Key not found" Error #492

Closed
opened 2026-03-13 20:37:40 +03:00 by kerem · 1 comment
Owner

Originally created by @uniqueumesh on GitHub (Aug 29, 2025).
Original GitHub issue: https://github.com/AJaySi/ALwrity/issues/225

Originally assigned to: @AJaySi, @uniqueumesh on GitHub.

While trying to generate a news report, the following error occurs:

str: An unexpected error occurred: 400 API Key not found. Please pass a valid API key. 
[reason: "API_KEY_INVALID" domain: "googleapis.com" metadata { key: "service" value: "generativelanguage.googleapis.com" }, locale: "en-US" message: "API Key not found. Please pass a valid API key." ]

Traceback:
Cannot extract the stack trace for this exception. Try calling exception() within the `catch` block.

Steps to Reproduce:

  • Open the Alwrity -AI News Writer tool.

  • Enter news headline: AI Trends in 2025.

  • Select country: India.

  • Select language: English.

  • Click Write News Report.

An error message appears, and no report is generated.

Expected Behavior:

The tool should fetch relevant news articles and generate a news report successfully.

Actual Behavior:

The news report fails to generate and displays the above API Key error.

Screenshot:

Image
Originally created by @uniqueumesh on GitHub (Aug 29, 2025). Original GitHub issue: https://github.com/AJaySi/ALwrity/issues/225 Originally assigned to: @AJaySi, @uniqueumesh on GitHub. While trying to generate a news report, the following error occurs: ``` str: An unexpected error occurred: 400 API Key not found. Please pass a valid API key. [reason: "API_KEY_INVALID" domain: "googleapis.com" metadata { key: "service" value: "generativelanguage.googleapis.com" }, locale: "en-US" message: "API Key not found. Please pass a valid API key." ] Traceback: Cannot extract the stack trace for this exception. Try calling exception() within the `catch` block. ``` ### Steps to Reproduce: - Open the Alwrity -[AI News Writer tool](https://www.alwrity.com/ai-news-generator). - Enter news headline: AI Trends in 2025. - Select country: India. - Select language: English. - Click Write News Report. ### An error message appears, and no report is generated. ## Expected Behavior: The tool should fetch relevant news articles and generate a news report successfully. ## Actual Behavior: The news report fails to generate and displays the above API Key error. Screenshot: <img width="1920" height="1080" alt="Image" src="https://github.com/user-attachments/assets/074a922f-de35-48c0-9b41-2b9df9d1e268" />
kerem 2026-03-13 20:37:40 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@AJaySi commented on GitHub (Sep 1, 2025):

I am closing this now. We are anyways rewriting everything.

<!-- gh-comment-id:3240717562 --> @AJaySi commented on GitHub (Sep 1, 2025): I am closing this now. We are anyways rewriting everything.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ALwrity#492
No description provided.