Forum Discussion

dbeavon3's avatar
dbeavon3
Memorable Member
1 year ago
Solved

How does a pipeline developer inspect details when encountering 400/4xx and 500/5xx errors

I'm trying to put on my "low-code hat", in order to help a co-worker with a "copy-activity" in fabric pipelines.   The source is a web request.  It this request is sent to an on-premise http servic...
  • dbeavon3's avatar
    dbeavon3
    1 year ago

    OK, now I figured out how that other suggestion was supposed to work.  You have to begin with a "REST" source type, not HttpServer.

    When using "REST" source types, then the connection and activity will reflect that.  See below.

     

     

    At this point, it allows us to access the full body of the failure like so:

    @string(activity('ABC').output)
    Moreover, we don't actually need to set a variable, since the U/I now displays the full body from the 400-response failures.
     
    It isn't clear to me WHY the full failure body is retrieved via "REST" copy-activities but not "HttpServer" copy-activities.  If anybody has any insight into the differences, please let me know!
     
    FYI, We aren't currently using REST by default because it wasn't enabling us to make binary-to-binary copies for some reason.  Whereas HttpServer allows these copy activities and seemed more straightforward.  In any event, it does NOT seem like low-code users of ADF should be forced to sacrifice the content-body of these 400 errors, when they are selecting between the sources of type "REST" and "HttpServer".  I'd love to know why this issue is happening.