Communication with OpenAI blocked on local dev

Created on 21 July 2024, 2 months ago
Updated 9 September 2024, 12 days ago

Problem/Motivation

I think that I maybe know the reason for this problem but I wanted to raise it here anyway because I believe it's a discussion point, particularly for those having an initial play.

I am using a local Windows 11 development setup with MAMP PRO running Drupal 10.3.1 with every bang up to date and running beautifully.

The full stack details…

Drupal 10.3.1
Apache/2.4.33 (Win64) OpenSSL/1.0.2u mod_fcgid/2.3.9 PHP/8.3.1
PHP 8.3.7, memory limit: 256M
MySQL 5.7.24
PHP Caching module: OpCache
Web browser: Version 126.0.6478.127 (Official Build) (64-bit)

I have the following module set installed:

  1. AI CKEditor integration
  2. AI Content Editing Tools
  3. AI Core
  4. OpenAI Provider

I have my OpenAI key-secret configured.

Having also set up the settings, I appear to be good to go.

The problem arises is that, because I am using the MAMP PRO (Windows™) stack, I don't think OpenAI recognises my site as secure and is throwing 500 errors which basically means nothing works ;-(

I'm loathed to just push all the AI code stuff up to my production site — that just doesn't seem like the right thing to have to do — so I'm basically calling out to the community for any suggestions from anyone with experience of developing Drupal locally with Windows as to how they might get around this and at least spoof the browser into believing and so reporting that the site is indeed secure (https://) and reporting it up the chain?

I know what you're gonna say:

1) Ask in the MAMP PRO forum — tried that no response at all.

2) Set up DDEV or some other Docker based stack — if I really have to I will but I think it would be very useful if someone else in the community has done this on a non-virtual stack in Windows and can share it.

...but I thought I'd ask anyway.

Thanks all

💬 Support request
Status

Fixed

Version

1.0

Component

User interface

Created by

🇬🇧United Kingdom SirClickALot Somerset

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024