In case someone encounters this exact problem in the future:
I found the error to be related to the external api not being properly configured to handle a request to a secure endpoint.
Since my site on WPEngine is secure (https
), IIS needs to be configured to handle TLS1.2, which is wasn’t (start here for the crumb trail : https://stackoverflow.com/questions/22627977/the-underlying-connection-was-closed-an-unexpected-error-occurred-on-a-send).
The configuration in my question works as designed, though perhaps it could be better designed (you let me know!). The server calling this endpoint wasn’t configured properly.
Related Posts:
- WordPress Plugin Development – Headers Already Sent Message
- Clarity needed on usage of multiple 403 forbidden header() functions at the beginning of the plugin files
- How to check WordPress website username and password is correct
- WordPress REST API call generates nonce twice on every call
- Headers already sent error with CSV export plugin
- Get file headers in custom file
- How to: Rest endpoint returning empty object
- Using ob_start() in plugin
- Adding custom code into header.php using a plugin
- Custom endpoint that returns an xml
- How can I change HTTP headers only to posts of a specific category from a plugin
- Plugin Sidebar is not Saving Meta Attribute to Post/Page after “Update”
- The plugin generated 80 characters of unexpected output!
- Rest Api How to get results of child categories with one api call
- WP rest api v2 posts filter by ‘search’ & ‘category_name’ not working
- Cannot modify header information – headers already sent by pluggable.php
- What method to use to call a REST API?
- Header Button Chance Polylang Elementor
- WP REST API V2 – Add user data to response
- An echo line in a transition_post_status action leads to “cannot modify header information – headers already sent by”
- Proper way to pass credentials in a custom login form to avoid “headers already sent”
- How can I pass get_the_author_meta(‘user_email’) through the REST API?
- How to get results of subcategories also?(WP Rest Api v2)
- Widget is to be compatible with all themes
- Amending REST API function without deactivate/activate plugin every time changes is made
- Create a new post using rest api and save featured image using an external image url
- Adding custom end points, No error line
- Secure REST with nonce works only when not logged
- Following WordPress Markup Is mandatory, got awkward resultyby wordpress standard markup?
- How to do POST request with WP REST API v2 to custom table?
- How to remove default style of header in wordpress metabox
- How to give a download link to a .csv file from the custom plugin?
- CSS not affecting widget output
- rest_no_route on custom API endpoint wordpress
- Custom Rest Endpoint: Post/Put/Patch not working
- Can’t retrieve body params from PUT endpoint using formdata
- How to change WooCommerce loop product title HTML output in single product page and archive page
- Do I need to create an endpoint?
- WordPress Rest API with rest_do_request, possible race condition?
- How to use apiFetch to get author information in Gutenberg properly?
- Adding custom stylesheet into header.php using a plugin
- Mock a dependency of a WP_REST_Controller class
- update_callback is not working in register_rest_field
- REST Endpoint API 404
- Best practice for Designing a Plugin with this scenario
- Include HTML (Bootstrap Modal Box) with a plugin into my header
- A function that will remove HTML and tags from a string?
- Need Help Determining Where Header Error is Happening
- Font size of HTML content
- Why does website stretch and white space on load? [duplicate]
- Downloading File via headers doesnt work
- Allow REST API Endpoint to specific user and hide from public
- Custom Endpoint – Does it possible to use PUT method with WP API Rest?
- How to do admin ajax request in a plugin for rest api
- Attaching Image-file to userId
- Query String Filtering API
- Multiple TinyMCE on button click is initialized and appended but why only last one is writeable?
- WordPress Favicon not Working For Images/Videos/PDFs
- Custom plugin & calling REST api of wordpress instance the plugins is running on
- GET request return value as error instead of success
- How to query a nested field in wordpress api using _fields param
- Get Custom taxonomy parent with wordpress REST API
- register_meta not showing custom post type metabox data in rest api
- why is apiFetch throwing Unhandled Promise Rejection: TypeError: Object is not a function
- WP_Query not ordering correctly
- 403 error rest_’cookie_invalid_nonce’ on API Request
- I’m including a html file in my plugin, but it can’t find its css or js files
- Adding Amchart Interface to WordPress API
- WC REST API Error Handling
- Can’t access 3rd party API, code works on local server but not on wordpress
- Initializing rest endpoint issue
- How do I show the HTML descrption in wordpress photo gallery for my individual gallery pages?
- Two same AJAX calls – one is working, other doesn’t
- Some data has already been output, can’t send PDF file – fpdf issue in WordPress
- Headers already sent on custom plugin (Export function)
- Multisite and the JSON REST API: How to?
- React in plugins: REST endpoints vs. regular functions
- How to force download a plugin generated file?
- Implementing Select2 plugin into WordPress
- Query only title/field/featured media of posts [closed]
- WP API users per page
- How can I add the Post ID to Class Name in Jquery?
- How to get html tag ids from template?
- Best place to keep files that are called by cron jobs?
- Is it safe to use PUT and DELETE requests
- Is it possible to make WordPress as a RESTful app?
- Which subset of html does WordPress support?
- oneOf two possible objects in WP REST API?
- How to update WordPress Plugins in your own maintance application?
- Extend Plugin that creates an endpoint for GET request to also accepts POST requests
- How can create a custom plugin to call my webapi after any registration or membership plugin functionality
- Rest Api WordPress
- External api call using wordpress
- How to create A – Z List with pictures?
- Does WP REST API cache internally executed (rest_do_request) requests?
- Run different permission_callback depending on HTTP method of custom REST API endpoint
- REST API error in block editor for custom templates
- How to get locale within WP REST Request?
- Execute callback after REST API request completes + Response is sent
- How to boost WP custom post REST API GET queries by custom taxonomies