Chicago Driesnote Drupal Forge Demo Is Timing Out on Long AI Calls
## Problem/motivation When following the instructions for the Chicago Dries Keynote Demo on the Drupal Forge page we get a 504 gateway timeout when waiting for Drupal Canvas AI to build the page. Drupal Forge Demo https://www.drupalforge.org/template/driesnote-chicago It appears that we hit a 60 second request limit on Drupal Forge where it then terminates the request causing the demo to fail. Running the demo locally using DDEV with the same API tokens works. **Canvas AI error at 60s**\ ![ai-initiative-ai-working](/uploads/fc40c7a309d0650bf7e1626866f08dff/ai-initiative-ai-working.png){width=354 height=333}\ ![ai-initiative-canvas-ai-message](/uploads/cf9992c848b2578fddb4ce6174d302a1/ai-initiative-canvas-ai-message.png){width=364 height=600} **Network Timing**\ ![ai-initiative-network-timing](/uploads/57ad9cde54e61a6b6f5847b1e05218a9/ai-initiative-network-timing.png){width=900 height=402} **Network Message Preview Error**\ ![ai-initiative-network-message-preview](/uploads/78e3c2f3d58be6c87b4eb4766302f6d6/ai-initiative-network-message-preview.png){width=755 height=156} **Network Request**\ ![ai-initiative-504-gateway](/uploads/bdc1a4d9138aca2fd618689bad7567f9/ai-initiative-504-gateway.png){width=900 height=353} **Drupal Error Log** ![ai-initiative-drupal-log-error](/uploads/27cf8c6e45ab4cb987b792824717cb61/ai-initiative-drupal-log-error.png){width=900 height=540} ## Steps to Reproduce 1. Follow the steps on the Drupal Forge page https://www.drupalforge.org/template/driesnote-chicago 2. On the 2nd step "Provide audience + goal context when Canvas asks:" enter that message into the Canvas AI and wait until the timeout ## Solution 1. If is is possible to increase the timeout length from 60s to 300s on the "/admin/api/canvas/ai" endpoint 2. AI suggested to enable to set the request to anthropic to `stream: true `
issue