zombieyang / sd-ppp

Communicate between Photoshop and SD/SDForge/ComfyUI
MIT License
130 stars 6 forks source link

Exception: sdppp PS side error:HTTP 422 #18

Open rajaarulsingh opened 3 months ago

rajaarulsingh commented 3 months ago

ERROR:asyncio:Task exception was never retrieved future: <Task finished name='Task-4094' coro=<AsyncServer._handle_event_internal() done, defined at D:\Python\SDLATEST\system\python\lib\site-packages\socketio\async_server.py:608> exception=Exception('sdppp PS side error:HTTP 422')> Traceback (most recent call last): File "D:\Python\SDLATEST\system\python\lib\site-packages\socketio\async_server.py", line 610, in _handle_event_internal r = await server._trigger_event(data[0], namespace, sid, data[1:]) File "D:\Python\SDLATEST\system\python\lib\site-packages\socketio\async_server.py", line 637, in _trigger_event ret = await handler(args) File "D:\Python\SDLATEST\webui\extensions\sd-ppp\sdppp_python\apis.py", line 80, in c_get_image upload_name, opacity = await photoshopInstance.get_image(layer_id=id, bounds_id=bounds_id) File "D:\Python\SDLATEST\webui\extensions\sd-ppp\sdppp_python\photoshop_instance.py", line 59, in get_image raise Exception('sdppp PS side error:' + result['error']) Exception: sdppp PS side error:HTTP 422

rajaarulsingh commented 3 months ago

ERROR:asyncio:Task exception was never retrieved future: <Task finished name='Task-1097' coro=<AsyncServer._handle_event_internal() done, defined at D:\Python\SDLATEST\system\python\lib\site-packages\socketio\async_server.py:608> exception=Exception('sdppp PS side error:No matching constructor overloading was found. Please see the docs for how to call the Jimp constructor.')> Traceback (most recent call last): File "D:\Python\SDLATEST\system\python\lib\site-packages\socketio\async_server.py", line 610, in _handle_event_internal r = await server._trigger_event(data[0], namespace, sid, data[1:]) File "D:\Python\SDLATEST\system\python\lib\site-packages\socketio\async_server.py", line 637, in _trigger_event ret = await handler(args) File "D:\Python\SDLATEST\webui\extensions\sd-ppp\sdppp_python\apis.py", line 80, in c_get_image upload_name, opacity = await photoshopInstance.get_image(layer_id=id, bounds_id=bounds_id) File "D:\Python\SDLATEST\webui\extensions\sd-ppp\sdppp_python\photoshop_instance.py", line 59, in get_image raise Exception('sdppp PS side error:' + result['error']) Exception: sdppp PS side error:No matching constructor overloading was found. Please see the docs for how to call the Jimp constructor.

zombieyang commented 3 months ago

could you provide your version of Photoshop?

rajaarulsingh commented 3 months ago

24.0.1 (2023) and now i installed 2024 working on it

rajaarulsingh commented 3 months ago

thank you

Stone-dielianhua commented 3 months ago

At first, I'm very thankful to the author for his hard work and effort to give us another way for AI to interact with Photoshop. This tool works smoothly in the latest version of Photoshop (2024), but performs poorly in older versions of Photoshop. As much as I hate to say it, there are still quite a lot of people who use older versions of PS, and I'm sure this tool would be much better if the author adapted older versions of Photoshop (2023 and below).

zombieyang commented 3 months ago

There is a key Photoshop API imaging.getPixels that only available in 24.4.0+. So sdppp is only available above that version till now. Maybe I can find another way to replace that API.

And I want to know that will it be very unacceptable to upgrade to 24.4.1 from 24.0.1?

cdmusic2019 commented 2 months ago

Same Issues, PS version: 25.0.0

GeminiSquishGames commented 2 months ago

I think we should stop supporting photoshop and do alternatives, but I'm guessing people love that flavor of koolaide too much to give it up since the status quo isn't erudite enough to develop their own. But yeah, if you are asking for support of legacy versions, it's obvious you fly the Jolly Roger atop ye mast, matey!

jeanhadrien commented 2 months ago

same issue on 24.7.4

leetraman822 commented 1 month ago

Same Issues, PS version: 25.0.0

me too,