Improve HttpRequests
#3449
Annotations
10 errors and 1 warning
Run tests:
src/http-requests.ts#L269
MeiliSearchApiError: The json payload provided is malformed. `expected ident at line 1 column 2`.
❯ HttpRequests.#request src/http-requests.ts:269:13
❯ Index.updateDistinctAttribute src/indexes.ts:884:18
❯ tests/distinct_attribute.test.ts:40:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { response: { constructor: 'Function<Response>', type: 'basic', url: 'http://127.0.0.1:7700/indexes/movies_test/settings/distinct-attribute', redirected: false, status: 400, ok: false, statusText: 'Bad Request', headers: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, body: { constructor: 'Function<ReadableStream>', locked: true, cancel: 'Function<cancel>', getReader: 'Function<getReader>', pipeThrough: 'Function<pipeThrough>', pipeTo: 'Function<pipeTo>', tee: 'Function<tee>', values: 'Function<values>' }, bodyUsed: true, clone: 'Function<clone>', blob: 'Function<blob>', arrayBuffer: 'Function<arrayBuffer>', text: 'Function<text>', json: 'Function<json>', formData: 'Function<formData>', bytes: 'Function<bytes>' } }
|
Run tests:
src/http-requests.ts#L269
MeiliSearchApiError: The json payload provided is malformed. `expected ident at line 1 column 2`.
❯ HttpRequests.#request src/http-requests.ts:269:13
❯ Index.updateDistinctAttribute src/indexes.ts:884:18
❯ tests/distinct_attribute.test.ts:40:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { response: { constructor: 'Function<Response>', type: 'basic', url: 'http://127.0.0.1:7700/indexes/movies_test/settings/distinct-attribute', redirected: false, status: 400, ok: false, statusText: 'Bad Request', headers: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, body: { constructor: 'Function<ReadableStream>', locked: true, cancel: 'Function<cancel>', getReader: 'Function<getReader>', pipeThrough: 'Function<pipeThrough>', pipeTo: 'Function<pipeTo>', tee: 'Function<tee>', values: 'Function<values>' }, bodyUsed: true, clone: 'Function<clone>', blob: 'Function<blob>', arrayBuffer: 'Function<arrayBuffer>', text: 'Function<text>', json: 'Function<json>', formData: 'Function<formData>', bytes: 'Function<bytes>' } }
|
Run tests:
tests/localized_attributes.test.ts#L78
AssertionError: expected MeiliSearchApiError: The json payload pro… { …(2) } to have property "cause.code" with value 'invalid_settings_localized_attributes'
Expected: "invalid_settings_localized_attributes"
Received: "malformed_payload"
❯ tests/localized_attributes.test.ts:78:7
|
Run tests:
tests/localized_attributes.test.ts#L78
AssertionError: expected MeiliSearchApiError: The json payload pro… { …(2) } to have property "cause.code" with value 'invalid_settings_localized_attributes'
Expected: "invalid_settings_localized_attributes"
Received: "malformed_payload"
❯ tests/localized_attributes.test.ts:78:7
|
Run tests:
src/http-requests.ts#L269
MeiliSearchApiError: The json payload provided is malformed. `expected value at line 1 column 1`.
❯ HttpRequests.#request src/http-requests.ts:269:13
❯ Index.updatePrefixSearch src/indexes.ts:1553:18
❯ tests/prefix_search_settings.test.ts:40:27
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { response: { constructor: 'Function<Response>', type: 'basic', url: 'http://127.0.0.1:7700/indexes/movies_test/settings/prefix-search', redirected: false, status: 400, ok: false, statusText: 'Bad Request', headers: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, body: { constructor: 'Function<ReadableStream>', locked: true, cancel: 'Function<cancel>', getReader: 'Function<getReader>', pipeThrough: 'Function<pipeThrough>', pipeTo: 'Function<pipeTo>', tee: 'Function<tee>', values: 'Function<values>' }, bodyUsed: true, clone: 'Function<clone>', blob: 'Function<blob>', arrayBuffer: 'Function<arrayBuffer>', text: 'Function<text>', json: 'Function<json>', formData: 'Function<formData>', bytes: 'Function<bytes>' } }
|
Run tests:
src/http-requests.ts#L269
MeiliSearchApiError: The json payload provided is malformed. `expected value at line 1 column 1`.
❯ HttpRequests.#request src/http-requests.ts:269:13
❯ Index.updatePrefixSearch src/indexes.ts:1553:18
❯ tests/prefix_search_settings.test.ts:40:27
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { response: { constructor: 'Function<Response>', type: 'basic', url: 'http://127.0.0.1:7700/indexes/movies_test/settings/prefix-search', redirected: false, status: 400, ok: false, statusText: 'Bad Request', headers: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, body: { constructor: 'Function<ReadableStream>', locked: true, cancel: 'Function<cancel>', getReader: 'Function<getReader>', pipeThrough: 'Function<pipeThrough>', pipeTo: 'Function<pipeTo>', tee: 'Function<tee>', values: 'Function<values>' }, bodyUsed: true, clone: 'Function<clone>', blob: 'Function<blob>', arrayBuffer: 'Function<arrayBuffer>', text: 'Function<text>', json: 'Function<json>', formData: 'Function<formData>', bytes: 'Function<bytes>' } }
|
Run tests:
src/http-requests.ts#L269
MeiliSearchApiError: The json payload provided is malformed. `expected value at line 1 column 1`.
❯ HttpRequests.#request src/http-requests.ts:269:13
❯ Index.updateProximityPrecision src/indexes.ts:1336:18
❯ tests/proximity_precision.test.ts:41:34
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { response: { constructor: 'Function<Response>', type: 'basic', url: 'http://127.0.0.1:7700/indexes/movies_test/settings/proximity-precision', redirected: false, status: 400, ok: false, statusText: 'Bad Request', headers: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, body: { constructor: 'Function<ReadableStream>', locked: true, cancel: 'Function<cancel>', getReader: 'Function<getReader>', pipeThrough: 'Function<pipeThrough>', pipeTo: 'Function<pipeTo>', tee: 'Function<tee>', values: 'Function<values>' }, bodyUsed: true, clone: 'Function<clone>', blob: 'Function<blob>', arrayBuffer: 'Function<arrayBuffer>', text: 'Function<text>', json: 'Function<json>', formData: 'Function<formData>', bytes: 'Function<bytes>' } }
|
Run tests:
src/http-requests.ts#L269
MeiliSearchApiError: The json payload provided is malformed. `expected value at line 1 column 1`.
❯ HttpRequests.#request src/http-requests.ts:269:13
❯ Index.updateProximityPrecision src/indexes.ts:1336:18
❯ tests/proximity_precision.test.ts:56:34
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { response: { constructor: 'Function<Response>', type: 'basic', url: 'http://127.0.0.1:7700/indexes/movies_test/settings/proximity-precision', redirected: false, status: 400, ok: false, statusText: 'Bad Request', headers: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, body: { constructor: 'Function<ReadableStream>', locked: true, cancel: 'Function<cancel>', getReader: 'Function<getReader>', pipeThrough: 'Function<pipeThrough>', pipeTo: 'Function<pipeTo>', tee: 'Function<tee>', values: 'Function<values>' }, bodyUsed: true, clone: 'Function<clone>', blob: 'Function<blob>', arrayBuffer: 'Function<arrayBuffer>', text: 'Function<text>', json: 'Function<json>', formData: 'Function<formData>', bytes: 'Function<bytes>' } }
|
Run tests:
src/http-requests.ts#L269
MeiliSearchApiError: The json payload provided is malformed. `expected value at line 1 column 1`.
❯ HttpRequests.#request src/http-requests.ts:269:13
❯ Index.updateProximityPrecision src/indexes.ts:1336:18
❯ tests/proximity_precision.test.ts:41:34
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { response: { constructor: 'Function<Response>', type: 'basic', url: 'http://127.0.0.1:7700/indexes/movies_test/settings/proximity-precision', redirected: false, status: 400, ok: false, statusText: 'Bad Request', headers: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, body: { constructor: 'Function<ReadableStream>', locked: true, cancel: 'Function<cancel>', getReader: 'Function<getReader>', pipeThrough: 'Function<pipeThrough>', pipeTo: 'Function<pipeTo>', tee: 'Function<tee>', values: 'Function<values>' }, bodyUsed: true, clone: 'Function<clone>', blob: 'Function<blob>', arrayBuffer: 'Function<arrayBuffer>', text: 'Function<text>', json: 'Function<json>', formData: 'Function<formData>', bytes: 'Function<bytes>' } }
|
Run tests:
src/http-requests.ts#L269
MeiliSearchApiError: The json payload provided is malformed. `expected value at line 1 column 1`.
❯ HttpRequests.#request src/http-requests.ts:269:13
❯ Index.updateProximityPrecision src/indexes.ts:1336:18
❯ tests/proximity_precision.test.ts:56:34
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { response: { constructor: 'Function<Response>', type: 'basic', url: 'http://127.0.0.1:7700/indexes/movies_test/settings/proximity-precision', redirected: false, status: 400, ok: false, statusText: 'Bad Request', headers: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, body: { constructor: 'Function<ReadableStream>', locked: true, cancel: 'Function<cancel>', getReader: 'Function<getReader>', pipeThrough: 'Function<pipeThrough>', pipeTo: 'Function<pipeTo>', tee: 'Function<tee>', values: 'Function<values>' }, bodyUsed: true, clone: 'Function<clone>', blob: 'Function<blob>', arrayBuffer: 'Function<arrayBuffer>', text: 'Function<text>', json: 'Function<json>', formData: 'Function<formData>', bytes: 'Function<bytes>' } }
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading