Skip to content

​API Error: method must be a single string, not NULL. #7

@dieemaildeshabermann-ops

Description

Hi Noah,
​Thank you so much for creating AIDE! It is a fantastic tool and I'm really excited to use it for my systematic reviews.
​I wanted to report a bug I'm running into when trying to use the cloud LLM providers (Google Gemini and Mistral). The app successfully connects to the API to fetch the model lists and save my settings (returning a Status Code 200). However, when I upload a PDF and click "Analyze," the extraction fails and returns this exact error for every prompt:
​API Error: method must be a single string, not NULL.
​Based on the R console logs, it looks like this is a routing bug with the httr2 package. When AIDE attempts to send the payload to the Gemini or Mistral APIs, the HTTP method is dropping to NULL (instead of registering as "POST"), which causes httr2 to block the request.
​Steps to reproduce:
​Configure a valid Gemini or Mistral API key in Settings.
​Fetch models and save settings successfully.
​Upload a PDF and prompts, then click "Analyze".
​The NULL method error immediately populates in the results table.
​My Environment:
​OS: Windows
​R version: 4.2.0
​Thanks again for your hard work on this package! Let me know if you need me to provide my full console logs or any additional testing to help track this down.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions