Improve HttpRequests
#3449
tests.yml
on: pull_request
style-check
26s
types-check
15s
Matrix: integration_tests
Annotations
20 errors and 4 warnings
tests/distinct_attribute.test.ts > Test on distinct attribute > Master key: Update distinct attribute:
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>' } }
|
tests/distinct_attribute.test.ts > Test on distinct attribute > Admin key: Update distinct attribute:
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>' } }
|
tests/localized_attributes.test.ts > Test on localizedAttributes > Master key: Update localizedAttributes with invalid value:
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
|
tests/localized_attributes.test.ts > Test on localizedAttributes > Admin key: Update localizedAttributes with invalid value:
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
|
tests/prefix_search_settings.test.ts > Test on prefix search settings > Master key: Set prefixSearch settings with dedicated endpoint on empty index:
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>' } }
|
tests/prefix_search_settings.test.ts > Test on prefix search settings > Admin key: Set prefixSearch settings with dedicated endpoint on empty index:
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>' } }
|
tests/proximity_precision.test.ts > Test on proximity precision > Master key: Update proximity precision with 'byAttribute' value:
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>' } }
|
tests/proximity_precision.test.ts > Test on proximity precision > Master key: Update proximity precision with 'byWord' value:
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>' } }
|
tests/proximity_precision.test.ts > Test on proximity precision > Admin key: Update proximity precision with 'byAttribute' value:
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>' } }
|
tests/proximity_precision.test.ts > Test on proximity precision > Admin key: Update proximity precision with 'byWord' value:
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>' } }
|
tests/distinct_attribute.test.ts > Test on distinct attribute > Master key: Update distinct attribute:
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>' } }
|
tests/distinct_attribute.test.ts > Test on distinct attribute > Admin key: Update distinct attribute:
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>' } }
|
tests/localized_attributes.test.ts > Test on localizedAttributes > Master key: Update localizedAttributes with invalid value:
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
|
tests/localized_attributes.test.ts > Test on localizedAttributes > Admin key: Update localizedAttributes with invalid value:
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
|
tests/prefix_search_settings.test.ts > Test on prefix search settings > Master key: Set prefixSearch settings with dedicated endpoint on empty index:
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>' } }
|
tests/prefix_search_settings.test.ts > Test on prefix search settings > Admin key: Set prefixSearch settings with dedicated endpoint on empty index:
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>' } }
|
tests/proximity_precision.test.ts > Test on proximity precision > Master key: Update proximity precision with 'byAttribute' value:
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>' } }
|
tests/proximity_precision.test.ts > Test on proximity precision > Master key: Update proximity precision with 'byWord' value:
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>' } }
|
tests/proximity_precision.test.ts > Test on proximity precision > Admin key: Update proximity precision with 'byAttribute' value:
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>' } }
|
tests/proximity_precision.test.ts > Test on proximity precision > Admin key: Update proximity precision with 'byWord' value:
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>' } }
|
types-check
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
style-check
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
integration-tests (Node.js 18)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
integration-tests (Node.js 20)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|