You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 15, 2020. It is now read-only.
Hello, I am using "Local by Flywheel" for local development, with a self-signed certificate.
Local by Flywheel is a Docker based dev environment. It uses separate containers to run individual WordPress installations, and a separate "router" container to intercept and reverse proxy HTTPS connections to the appropriate WP install container. In this environment, with a self signed certificate, file_get_contents() fails to read the manifest, as the curl connection is refused.
\WPGraphiQL::get_app_manifest():63, uses file_get_contents to read the asset-manifest.json via URL, thusly:
I am unsure as to why it would be necessary to read the manifest file into PHP via URL, since it is available in the plugin assets, and can be read directly from the filesystem. Perhaps reading the manifest file directly from the filesystem could be a better route?
The text was updated successfully, but these errors were encountered:
Hello, I am using "Local by Flywheel" for local development, with a self-signed certificate.
Local by Flywheel is a Docker based dev environment. It uses separate containers to run individual WordPress installations, and a separate "router" container to intercept and reverse proxy HTTPS connections to the appropriate WP install container. In this environment, with a self signed certificate, file_get_contents() fails to read the manifest, as the curl connection is refused.
\WPGraphiQL::get_app_manifest():63, uses file_get_contents to read the asset-manifest.json via URL, thusly:
Due to the refused connection, the GraphiQL admin screen is blank, and PHP logs the following:
However, if I modify \WPGraphiQL::get_app_manifest():63 to read the manifest directly from the filesystem, everything works as intended:
I am unsure as to why it would be necessary to read the manifest file into PHP via URL, since it is available in the plugin assets, and can be read directly from the filesystem. Perhaps reading the manifest file directly from the filesystem could be a better route?
The text was updated successfully, but these errors were encountered: