-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Description
When attempting to post to X.com (Twitter) using the x_write tool, the workflow fails with an authentication error: "Failed to obtain credential for tool x_write: Failed to fetch access token: 403 {"error":"Authentication required - provide session, API key, or internal JWT"}"
To Reproduce
Steps to reproduce the behavior:
Create a new workflow in Sim Studio
Add an X (Twitter) node with the x_write action
Configure the post content and parameters
Click 'Run' to execute the workflow
See error: "Failed to obtain credential for tool x_write: Failed to fetch access token: 403"
Expected behavior
The workflow should authenticate successfully with X.com using the configured credentials and post the content to Twitter without errors. The tool should either:
Use OAuth credentials (X_CLIENT_ID and X_CLIENT_SECRET) to obtain an access token, or
Use pre-configured Twitter API credentials (API key, API secret, access token, and access token secret)
Screenshots
Error message in workflow execution:
"Failed to obtain credential for tool x_write: Failed to fetch access token: 403 {"error":"Authentication required - provide session, API key, or internal JWT"}"
Additional context
Self-hosted Sim Studio instance running via Docker Compose (docker-compose.prod.yml)
Using HTTPS with nginx reverse proxy (https://sim.rpd.pm/)
Have valid X/Twitter API credentials including:
X_CLIENT_ID and X_CLIENT_SECRET (for OAuth 2.0)
TWITTER_API_KEY and TWITTER_API_SECRET
TWITTER_ACCESS_TOKEN and TWITTER_ACCESS_TOKEN_SECRET
TWITTER_BEARER_TOKEN
Credentials are set in .env file but may not be properly passed to the simstudio container
The error suggests the tool cannot access the credentials, possibly due to missing environment variable configuration in docker-compose.prod.yml
No credential management interface found in the Sim Studio UI to manually configure X/Twitter credentials