I get an error in this method, specifically related to the attribute "headers" not existing in the request. However I do not understand why it doesn\'t work with b