We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The fetch call here uses a hardcoded endpoint name:
https://github.com/payloadcms/payload/blob/main/packages/plugin-search/src/Search/ui/ReindexButton/index.client.tsx#L49
Which results in a call to:
http://localhost:3000/api/search/reindex?locale=de
But our defined endpoint is /cms/api. The search plugin should use the correct endpoint.
/cms/api
PS: the error handling swallowed the 404 error only available on the JavaScript console. Errors throws by fetch() should be displayed as toasts too.
https://github.com/cbratschi/payload
Use a different API endpoint path than /api. Try reindexing and nothing happens.
/api
plugin: search
Binaries: Node: 22.12.0 npm: 10.9.0 Yarn: 1.22.22 pnpm: N/A Relevant Packages: payload: 3.12.0 Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 24.1.0: Thu Oct 10 21:05:23 PDT 2024; root:xnu-11215.41.3~2/RELEASE_ARM64_T6031 Available memory (MB): 65536 Available CPU cores: 16
The text was updated successfully, but these errors were encountered:
cdaebcc
This issue has been automatically locked. Please open a new issue if this issue persists with any additional detail.
Sorry, something went wrong.
🚀 This is included in version v3.13.0
JessChowdhury
Successfully merging a pull request may close this issue.
Describe the Bug
The fetch call here uses a hardcoded endpoint name:
https://github.com/payloadcms/payload/blob/main/packages/plugin-search/src/Search/ui/ReindexButton/index.client.tsx#L49
Which results in a call to:
http://localhost:3000/api/search/reindex?locale=de
But our defined endpoint is
/cms/api
. The search plugin should use the correct endpoint.PS: the error handling swallowed the 404 error only available on the JavaScript console. Errors throws by fetch() should be displayed as toasts too.
Link to the code that reproduces this issue
https://github.com/cbratschi/payload
Reproduction Steps
Use a different API endpoint path than
/api
. Try reindexing and nothing happens.Which area(s) are affected? (Select all that apply)
plugin: search
Environment Info
The text was updated successfully, but these errors were encountered: