[BUG] X Integration

Aberta
#2,409 2 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
35/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Estagnada
Stack de tecnologia
docker-compose, nginx, typescript

Direção de pesquisa

Start by reproducing the x_write workflow failure on the self-hosted Docker Compose deployment, then inspect docker-compose.prod.yml and the .env credential handling for the X/Twitter variables listed in the report. Done means the container can authenticate with the configured credentials and successfully post through the X node without the 403 error.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

bug

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

Linguagem predominante
TypeScript
Estrelas
29.8k
Forks
3.9k
Merge médio
1h 44min
PRs com merge (30d)
841

Preparar o ambiente

Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de simstudioai/sim

Todas as issues de simstudioai/sim

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.