mikomagni/Alfrello

Malformed input to a URL function

AuGaut opened this issue ยท 4 comments

AuGaut commented

Hy there
I keep getting logs of the following error:
[ 07:36:14] Curl error: URL rejected: Malformed input to a URL function
[ 07:44:13] Curl error: URL rejected: Malformed input to a URL function
[ 08:32:07] Curl error: URL rejected: Malformed input to a URL function
I followed the instructions when setting up the workflow. (Using Alfred 5.1.1 [2138])
Any way to help with this?
Much appreciated!

Hi @AuGaut

Please let me know how you have installed PHP, the PHP version and Path.

You can find your PHP path by typing the following commands in the terminal which php and where php

Step 1

Can you also enable the debug log in the extension (see screenshot)

CleanShot 2023-07-18 at 11 06 50@2x

Once you have enabled the debug log and tried to run Alfrello, right-click on the extension and click on Open in finder and look for the log.txt

CleanShot 2023-07-18 at 11 08 26@2x

Did you find anything useful in the log.txt, by chance? If so, can you share it? (make sure to obfuscate any personal key or information)

Step 2

Enable debug mode in Alfred, go the Alfrello and click on the bug icon.

CleanShot 2023-07-18 at 11 15 12@2x

Run Alfrello and check the output in the debugger.

CleanShot 2023-07-18 at 11 15 37@2x

Let me know what you find ๐Ÿ˜„

AuGaut commented

Hy @mikomagni

I installed PHP with the following command in the terminal: /bin/bash -c "$(curl -fsSL https://github.com/alfredapp/dependency-scripts/raw/main/scripts/install-php.sh)"

I have PHP 8.2.8 (cli) and the path is '/opt/homebrew/bin/php' from my home folder.

The logs list the errors shown in my initial comment.

Debugger looks as follows:
image

Thanks a lot for your help!

(To clarify, I do have an internet connection :) )

AuGaut commented

Update:

I think the problem was fixed when I deleted the workflow and reinstalled it. Maybe the dependency on php was not initialised properly. From my point of view I can close the issue.

Excellent, I was just about to suggest a few more things. But I'm even happier that it is working ๐Ÿ‘