Bug: unable to complete Assets external import using asApp() as per examples

Hello!

As per examples found here and here it should be possible to set data transfer to be completed by simple request which is executed by asApp(). However, in both of these examples I am getting error 500 Internal Server Error.

When asApp() is changed to asUser(), the request works but this does not work in Async Events.

It seems to be a bug, not sure if this is the correct and/or fastest way to report it and get it fixed. Or if I am indeed doing something wrong, please let me know.