eDiasoft / midjourney-api-php

Midjourney API client for PHP
33 stars 9 forks source link

Seems this method is down #9

Closed Porcaro0 closed 5 months ago

Porcaro0 commented 6 months ago

Hi there,

Having problems in using your library since few days. Uncaught eDiasoft\Midjourney\Exceptions\MidjourneyException: Can't retrieve Guild ID.

Are you facing the same issue ?

Thanks

ShuCh3n commented 6 months ago

Can you provide more info? Sample code

Porcaro0 commented 6 months ago

The problem seems to be guid retrieval

use eDiasoft\Midjourney\MidjourneyApiClient;

$channel_id = XXXXXXXXXXXXX; $authorization = "YYYYYYYYYYYYYYYYYYYY"; $midjourney = new MidjourneyApiClient($channel_id, $authorization); $result = $midjourney->imagine('Elephant and a snake romantically having a diner')->send(); echo $result;

Uncaught eDiasoft\Midjourney\Exceptions\MidjourneyException: Can't retrieve Guild ID. in vendor/ediasoft/midjourney-api-php/src/Config/Config.php:43 Stack trace: #0 vendor/ediasoft/midjourney-api-php/src/Commands/BaseCommand.php(38): eDiasoft\Midjourney\Config\Config->guildId() #1 vendor/ediasoft/midjourney-api-php/src/Commands/BaseCommand.php(30): eDiasoft\Midjourney\Commands\BaseCommand->defaultPayload() #2 vendor/ediasoft/midjourney-api-php/src/MidjourneyApiClient.php(22): eDiasoft\Midjourney\Commands\BaseCommand->__construct(Object(eDiasoft\Midjourney\Config\DefaultConfig), 'Elephant and a ...') #3 testmidjourney.php(43): eDiasoft\Midjourney\MidjourneyApiClient->imagine('Elephant and a ...') #4 {main} thrown in vendor/ediasoft/midjourney-api-php/src/Config/Config.php on line 43

dvector87 commented 5 months ago

I get same issue...

AbedRabaia commented 5 months ago

Same issue here too @ShuCh3n can you help

ShuCh3n commented 5 months ago

Looking into it

ShuCh3n commented 5 months ago

Can you guys confirm if the latest version fix your problems?

https://github.com/eDiasoft/midjourney-api-php/releases/tag/1.1.1

dvector87 commented 5 months ago

same issue, Can't retrieve Guild ID.

ShuCh3n commented 5 months ago

Then you're setting the wrong channel ID

dvector87 commented 5 months ago

All work perfect now, thanks