Open GiboMac opened 1 year ago
Hello, i have a problem :D I've tried the node example in this repo https://github.com/rcs-business-messaging/rbm-api-examples. In particular, I did a bulk capibility check test, and I got some inconsistent results,
For example, assume we have the following numbers to check:
Example 1
{ config: { url: 'https://rcsbusinessmessaging.googleapis.com/v1/users:batchGet', method: 'POST', userAgentDirectives: [ { product: 'google-api-nodejs-client', version: '7.0.0', comment: 'gzip' } ], paramsSerializer: [Function (anonymous)], data: { users: [ 'redacted', 'redacted', 'redacted' ] }, headers: { 'x-goog-api-client': 'gdcl/7.0.0 gl-node/16.14.2', 'Accept-Encoding': 'gzip', 'User-Agent': 'google-api-nodejs-client/7.0.0 (gzip)', Authorization: 'Bearer ya29.c.b0Aaekm1Ka4H2oxH4YynJ92L5OsEkYYP3n0S7s09dkpnCfzzGn7Al-WS_V2dZVtzChCNbSLiaYOoDjPLQqH0qEsxo3Yoo9mGxHMVxVnQRSeh0FFPJC_zLrUYRZocCD8fkoKOIdo9ftG-3bxEMpEu3jAjem9Id1qwBY0e8c5S5FaZ71LmgSZNnyptuT2qUnEhUIu73Sdz4KAPqqv5fEjOW6BoTv_Ps89My0e-N6jyetQgZS0fKWWxzGtTnUhuTg3hxIq3HQK0Vusxb2qn_wDTDWZx2AAVb9qPfIlj1o1Si9Xe5WYQ6lD37N-NZYzsN5Nnz5kS7vBe_OgmgkG341PMYyQhY2R8I-qe036WmlfWV6jiiUI2x67B8MY5taMIJIwXu2uMk1RVoX247ugyq-W5URu1MlmluUO7udceRmY7oBO3erfYkpBtYW1YyZhwad85FtsW0lIoJ0ZblX-9B2QQaFn6b3J2XkdRWUj1xM19ir0k5mFobRWnna1qmx2MgrqoMR9Mk0z57WBb8Fl1WrXRho-Olqyh75zOqMe9htQmxIbIi08l1-U6JYZgMZMIVhjOh1wXlbJ84__J6mu4xaVM0jWr7wISRzpUnyed60rQYI7durZB2jqBfzruWSOwmZurhxWoaap7pdyZrIr0Vo9l7nrhS8-p1feJnx4aB05Icl2FbnhxnS4OkB6Xo5qWqse9yw8kapJb0pukuw_35FSxv5ba9x2U5jpi58dq6xBn575rgpcIImv-cRukkxYloMkQ-xbBYZ29u2fbyz73j72Vkl31k_F4IlokQ1fe3g9snukeyRqBnc64e8XFbRMsz-qzXzlhUro4Br0uVcazn-foSI3wulQQ56qZiBrpZh6RrcBBbIRVZvURwi_6qygqzyMiYd7jVUv6IeYXqr6IZzkB5laO4BV9Zh61njm1r39YokOWdh37mmshnW86YwWr5xngMuvumd_RxUOgSR0hQ2jbtq2-l_t4bWVVwvf0Ws4UBeWFOvmI662F-mjxl', 'Content-Type': 'application/json' }, params: {}, validateStatus: [Function (anonymous)], retry: true, body: '{"users":["redacted","redacted","redacted"]}', responseType: 'unknown', errorRedactor: [Function: defaultErrorRedactor] }, data: {}, headers: { 'alt-svc': 'h3=":443"; ma=2592000,h3-29=":443"; ma=2592000', 'cache-control': 'private', connection: 'close', 'content-encoding': 'gzip', 'content-type': 'application/json; charset=UTF-8', date: 'Fri, 27 Oct 2023 12:49:48 GMT', server: 'ESF', 'transfer-encoding': 'chunked', vary: 'Origin, X-Origin, Referer', 'x-content-type-options': 'nosniff', 'x-frame-options': 'SAMEORIGIN', 'x-xss-protection': '0' }, status: 200, statusText: 'OK', request: { responseURL: 'https://rcsbusinessmessaging.googleapis.com/v1/users:batchGet' } }
Example 2
{ config: { url: 'https://rcsbusinessmessaging.googleapis.com/v1/users:batchGet', method: 'POST', userAgentDirectives: [ { product: 'google-api-nodejs-client', version: '7.0.0', comment: 'gzip' } ], paramsSerializer: [Function (anonymous)], data: { users: [ 'redacted', 'redacted' ] }, headers: { 'x-goog-api-client': 'gdcl/7.0.0 gl-node/16.14.2', 'Accept-Encoding': 'gzip', 'User-Agent': 'google-api-nodejs-client/7.0.0 (gzip)', Authorization: 'Bearer ya29.c.c0AY_VpZhMe3aX_JmSXNKd-eEzLFEtEFIEBJ3fRI0mK3XI4M35XbcJcuB-B9hPvQhxZt57eSdOjtsmniCq-uEIDT2lUl4_3M5cJWjUabcQYWhKDHwlSH3c5WiQeJYVbP3E2DHEe_IB_2GcsHWZcjApZAc8_sbNY4FivIx1F3eTLQwp2pcuvk8g8-LAS0hqhTE84vi1UJH5VHMM0XGni1s1WGvg13P-lFsAgXgMKDw_UFs5kc0dYlzpZGxhD9QXH0EKHX3jffORPLZkAspwSAKdvY3AJgPZ00htm1XPcKiV4EWLSE7t0_oLKFVo-hhL5SzzaDo6w5j4SFH-UQRh1mSX2LVcXuT4dtwsPlI36a3e5hseDA85A50RdC4L384P3dMJxnFik6plMiOgigm-qxoSt30FO8Sk2vuW4k7BaRg6V6m1n_t38qfzwIBFz3__wxny_kVzJ9niklbJjmhYjBeYOXZxB3n4sWRze4kM1RIO3y3oiwpIdhpV_fFFXh9ubcvcM3FtZy2howRdbFIFvOfu4Zml4pWuqSm7st7sIXosw6rnBdU1opasommzuulX4vsvqoy1yureZk6ge95eF3IYaB2puxvcX_-vcitbU_t6fd1lcxieo-VBY3SiOWZj7cQnZoIfan1spss7xlwxfWXFJmURts6iIrzt3dR5i42cY2--02w3iSntMoqjVRloFwab64Q4utzohmaXooJIraJkd_Wpskob-0riVqrUeUp6u1XSjUInq2t-iSyiMs05MY6yu5YgV2-Q6ktUdFXM0-d1pQUis_52f-iQsWnJ3248bRsqf2VQX2iUu9teJJsdXeOsMRiXdX3qjQ1x-UotYs06eQFW2viVogyl6Z-m8RM_ecgjznO5RZVo_jY7cYvxVkIJidX06n--r9trWFY_sJsp4ZWhbsOQwSIgqi8O9MZJeXjIt8mvQX5uoX9dMgYn0WzsoIm7BgW15a2_lma37J-UMm-yRe2bulzwZZ-Y5y1lxfMkIvo1VFRd_nF', 'Content-Type': 'application/json' }, params: {}, validateStatus: [Function (anonymous)], retry: true, body: '{"users":["redacted","redacted"]}', responseType: 'unknown', errorRedactor: [Function: defaultErrorRedactor] }, data: { reachableUsers: [ 'redacted' ] }, headers: { 'alt-svc': 'h3=":443"; ma=2592000,h3-29=":443"; ma=2592000', 'cache-control': 'private', connection: 'close', 'content-encoding': 'gzip', 'content-type': 'application/json; charset=UTF-8', date: 'Fri, 27 Oct 2023 12:50:53 GMT', server: 'ESF', 'transfer-encoding': 'chunked', vary: 'Origin, X-Origin, Referer', 'x-content-type-options': 'nosniff', 'x-frame-options': 'SAMEORIGIN', 'x-xss-protection': '0' }, status: 200, statusText: 'OK', request: { responseURL: 'https://rcsbusinessmessaging.googleapis.com/v1/users:batchGet' } }
Example 3
{ config: { url: 'https://rcsbusinessmessaging.googleapis.com/v1/users:batchGet', method: 'POST', userAgentDirectives: [ { product: 'google-api-nodejs-client', version: '7.0.0', comment: 'gzip' } ], paramsSerializer: [Function (anonymous)], data: { users: [ 'redacted' ] }, headers: { 'x-goog-api-client': 'gdcl/7.0.0 gl-node/16.14.2', 'Accept-Encoding': 'gzip', 'User-Agent': 'google-api-nodejs-client/7.0.0 (gzip)', Authorization: 'Bearer ya29.c.b0Aaekm1IKXP0UoxGiAMjUgcJFsvzd3vNPSLVf5BjMQL4kOrl3rvlRktqzqNhugufEbQ7saR1laXU8oIEIMWxlSNZUqAse3iG1tIKr7Y9WbF6KUFwl49I1359p25B8i0bFiKTnVLimHx4Tip8lXaEud-bI2sm7DD0-6Zk_F-WeafXXrckKil_sJThpiBCGj1eHQJBaJ_iG-XbAos8su7k91aNYMDV5dy6mNgImwSGmVmOpv5FRvRX50bmM5XDGRJ8qtmoT50JP5fLJMO89zcgsoVomDn2uuEz90wuU2Akandlwzj-TJk3McokTaXR_08WxdNyaJg09SAvlEwT343PkMauSpg1Vrb-3fzVhpoxkRp3UB347770zOQFsgcc-_RaV7y2rX-Q23a3uXFwZsaIYYFOoUprQu7lMuZBulh5O5titp3MrWnMF7Jb5p35Y02JJ34gJ2bUFq0wW2x2x3BIXq40W-uW2wxVcxbjmVskw3bjSBz8Zam4sU5c1RUWqo9mjqobXVJbegVo2ct_0xwSmekVz1FSbBzrW84fpW2v6Oh_4JfMpJ7dQh1loJXVW3FR6ukXpW4pm9gvptskcRYIwk1SO7i1U4Rnoku5Zlgzyi7gsw46Bqn9SVvMJkJpVuhZheZ56-jlR-4Rwjx8gaBh69VcJk_8z5eeO4lRI-xg5hJq2-bJ98ww9RSc0neqc7BhYaiO1ygvYn3RRhsIcdweoSJoehaeIkOZbgst2jZkc7lB6qg71Y7v5tm786OgjRe481fn7FeUavnnOqs0bhVS3Bnj7iyBWZxwug-tJ644vYewqbcxvQZs671s0wJzFXm4SIJR7WjRe5BeUpo3VSOfw6n2Be3f284l6m1BWfrgF2r7QFc1v43-Od08Yb9WdvQplohB2RRx2gyuapv-MWf3z3wMV1hMSj9dcBev3QBVsunzrQvVlRqggk5te04tpSgq7YBsjZW6m8opBM9YtWfJeWW087o3_maq1XdOUlkeq8s1y7sJubVsy61x', 'Content-Type': 'application/json' }, params: {}, validateStatus: [Function (anonymous)], retry: true, body: '{"users":["redacted"]}', responseType: 'unknown', errorRedactor: [Function: defaultErrorRedactor] }, data: { reachableUsers: [ '+381654750633' ] }, headers: { 'alt-svc': 'h3=":443"; ma=2592000,h3-29=":443"; ma=2592000', 'cache-control': 'private', connection: 'close', 'content-encoding': 'gzip', 'content-type': 'application/json; charset=UTF-8', date: 'Fri, 27 Oct 2023 12:52:16 GMT', server: 'ESF', 'transfer-encoding': 'chunked', vary: 'Origin, X-Origin, Referer', 'x-content-type-options': 'nosniff', 'x-frame-options': 'SAMEORIGIN', 'x-xss-protection': '0' }, status: 200, statusText: 'OK', request: { responseURL: 'https://rcsbusinessmessaging.googleapis.com/v1/users:batchGet' } }
The call is correct in all three cases because a 200 is returned The question is why different results are returned based on the order of the three numbers I am passing?
Happened mostly with Serbian numbers, but also (sometimes) with Italian ones.
Any help is appreciated.
Thank you
Hello, i have a problem :D I've tried the node example in this repo https://github.com/rcs-business-messaging/rbm-api-examples. In particular, I did a bulk capibility check test, and I got some inconsistent results,
For example, assume we have the following numbers to check:
Example 1
Example 2
Example 3
The call is correct in all three cases because a 200 is returned The question is why different results are returned based on the order of the three numbers I am passing?
Happened mostly with Serbian numbers, but also (sometimes) with Italian ones.
Any help is appreciated.
Thank you