Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Firecrawl API call returning invalid token error #1099

Open
pmulard opened this issue Jan 27, 2025 · 1 comment
Open

[Bug] Firecrawl API call returning invalid token error #1099

pmulard opened this issue Jan 27, 2025 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@pmulard
Copy link

pmulard commented Jan 27, 2025

Describe the Bug

I'm trying to use the API to call FirecrawlApp::crawl_url via the Rust SDK, and I am getting an invalid token error:

Error crawling url: start crawl job failed: Unauthorized: Invalid token

The API was previously working fine for me, and I've triple-checked the API key, even creating a new account with another email address, and the problem still persists. I also created a new additional key for both accounts, just in case it was related to the specific key, and I still have the same problem.

To Reproduce

Here is my code for generation options and the API instance. (URL is passed as a string slice).

        let url = <some string slice>
        let app = FirecrawlApp::new(api_key)?;
        let options = CrawlOptions {
            scrape_options: CrawlScrapeOptions {
                formats: vec![CrawlScrapeFormats::Markdown].into(),
                ..Default::default()
            }
            .into(),
            limit: 5.into(),
            ..Default::default()
        };
        app.crawl_url(url, self.options.clone()).await?;
    }

Expected Behavior

Returns a 200 response.

Environment:

MacOS latest
firecrawl = "^1.0"
tokio = { version = "1.39.3", features = ["full"] }

@pmulard pmulard added the bug Something isn't working label Jan 27, 2025
@nickscamara
Copy link
Member

@mogery can you check this pls? tks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants