BAD BUGS in Shortcuts Get Contents of URL for POST with JSON or FILE

HOPING someone in Apple Shortcuts Development reads this and can fix the problems!


There are AT LEAST TWO significant bugs in Shortcut's Get Contents of URL when coding a POST operation:


One: When specifying JSON as the Request Body: Adding/Inserting a nested parameter frequently causes the Shortcuts App (v6.0) to CRASH on macOS Ventura (v13.2).


Examples:


Given:

{
"fields": {
"DateTime": "2023-01-28T16:01:59.000Z",
"ID": "A1234",
"Type": "B2345",
"Quantity": 1,
"Container": "Box",
"Comment": "Nested parameters cause macOS Shortcuts to crash"
}
}


[For some reason, a prior version of this post was blocked because two screenshots were inserted.


The apparently offending screenshots have been removed.]


Here is a Dropbox link to the first of two screenshots illustrating nested JSON BODY parameters: **


Two: Attempting to finesse Get Contents of URL POST with hardcoded JSON as TEXT passed as a FILE...FAILS! (But the same JSON payload works with Postman!)


Here is a Dropbox link to the second of two screenshots illustrating POST with FILE BODY parameters: **


Dear Apple Engineers...please evaluate these problems and remedy them.


Many, many thanks!


Plane Wryter


[Edited by Moderator]

iMac 27″ 5K, macOS 13.2

Posted on Jan 29, 2023 6:07 PM

Reply

Similar questions

2 replies

Jan 29, 2023 7:01 PM in response to Plane Wryter

Plane Wryter wrote:

HOPING someone in Apple Shortcuts Development reads this and can fix the problems!

Not gonna happen. This is a user-to-user support forum. Apple engineers are not here. Use the feedback assistant app to submit your bug reports. You will be asked to test in macOS 14 beta when it is released in the spring.

There are AT LEAST TWO significant bugs in Shortcut's Get Contents of URL when coding a POST operation:

One: When specifying JSON as the Request Body: Adding/Inserting a nested parameter frequently causes the Shortcuts App (v6.0) to CRASH on macOS Ventura (v13.2).

Can you do this on iOS? That’s really all that Apple cares about.

[For some reason, a prior version of this post was blocked because two screenshots were inserted.

The apparently offending screenshots have been removed.]

Here is a Dropbox link to the first of two screenshots illustrating nested JSON BODY parameters: **

The forum software is just flaky. If you try again with the same image, it will probably go though. Even better, use the “code” tool in the editor.


PS: Your Dropbox links definitely got removed on purpose. Those are not allowed.

Two: Attempting to finesse Get Contents of URL POST with hardcoded JSON as TEXT passed as a FILE...FAILS! (But the same JSON payload works with Postman!)

Obviously it is going to work in other systems, where it works. But you are unlikely to be able to fudge things. On Apple’s scale, JSON needs to really be JSON.

Jan 30, 2023 7:38 AM in response to Plane Wryter

In addition to the above…


Shortcuts is limited in its capabilities, and is not tooling I’d select for moderate- or larger-sized apps on macOS.


Swift is the tooling Apple prefers, zsh and ObjC are options, or add-on tooling such as Python.


For your JSON issues, log a bug report via bug reporter if you have access via the developer program, or log via Product Feedback if not.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

BAD BUGS in Shortcuts Get Contents of URL for POST with JSON or FILE

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.