You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

树莓派3运行Google Assistant时出现错误200及403权限问题求助

Fixing Google Assistant Error 200/403 on Raspberry Pi 3

First, let's unpack the confusing error you're facing: the request returns an HTTP 200 status code (which usually means success), but the actual response payload reveals a 403 Permission Denied issue stating a missing valid API key. Here's how to resolve this:

Error Details for Reference

https://embeddedassistant.googleapis.com/v1alpha2/projects/rpiassistant-f01c3/devices/B65EF05D34859770BDEBF646E84D89F1 200
ON_MUTED_CHANGED: {'is_muted': False}
ON_START_FINISHED
[2509:2526:ERROR:http_client_with_backoff.cc(113)] Retrying request with http_status=200 request_id=0

Response payload:

{
 "error": {
 "code": 403,
 "message": "The request is missing a valid API key.",
 "status": "PERMISSION_DENIED"
 }
}

Troubleshooting Steps

  • Double-check your API key configuration:
    Ensure your Google Assistant setup on the Pi uses a valid API key linked to your project rpiassistant-f01c3. Locate your assistant configuration file (usually assistant.json or the startup script) and verify the API key is correctly entered—no typos, extra spaces, or missing characters.

  • Confirm the Google Assistant API is enabled for your project:
    Go to the Google Cloud Console, navigate to your project, and check that the Google Assistant API is enabled. If it's not, enable it and wait a few minutes for changes to propagate.

  • Validate device and project association:
    Make sure the device ID B65EF05D34859770BDEBF646E84D89F1 is properly registered under your rpiassistant-f01c3 project in the Actions Console. Sometimes devices can become unlinked, so re-registering the device might fix the issue.

  • Refresh authentication credentials:
    Stale or incorrect auth tokens can trigger this error. Re-run the authentication script used during your initial setup (e.g., googlesamples-assistant-auth) to generate new credentials and update your assistant's configuration.

  • Check API key restrictions:
    If your API key has restrictions (like IP or API restrictions), ensure:

    • The Raspberry Pi's IP address is included in allowed IPs (if IP-restricted).
    • The Google Assistant API is listed as an allowed API (if API-restricted).
      Temporarily removing restrictions can help confirm if this is the root cause.

Content of the question is from Stack Exchange, asked by nakul nair

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.22 09:16:10