Socket.io-client: ํฌ์ฐฉ๋˜์ง€ ์•Š์€ TypeError : encodePayload.split์€ ํ•จ์ˆ˜๊ฐ€ ์•„๋‹™๋‹ˆ๋‹ค.

์— ๋งŒ๋“  2020๋…„ 11์›” 06์ผ  ยท  6์ฝ”๋ฉ˜ํŠธ  ยท  ์ถœ์ฒ˜: socketio/socket.io-client

๋‹น์‹ ์ด ์›ํ•˜๋Š” :

  • [x] ๋ฒ„๊ทธ๋ณด๊ณ 

ํ˜„์žฌ ํ–‰๋™

์˜ˆ์™ธ : Uncaught TypeError : encodingPayload.split์€ ํ•จ์ˆ˜๊ฐ€ ์•„๋‹™๋‹ˆ๋‹ค.

์žฌํ˜„ ๋‹จ๊ณ„

๊ฐ„๋‹จํ•œ ํด๋ง

์˜ˆ์ƒ๋˜๋Š” ํ–‰๋™

์˜ˆ์™ธ ์—†์Œ

์„ค์ •

  • OS : ๋ฆฌ๋ˆ…์Šค
  • ๋ธŒ๋ผ์šฐ์ € : ํฌ๋กฌ
  • socket.io ๋ฒ„์ „ : 3.0.0

๊ธฐํƒ€ ์ •๋ณด (์˜ˆ : ์Šคํƒ ์ถ”์ , ๊ด€๋ จ ๋ฌธ์ œ, ํ•ด๊ฒฐ ๋ฐฉ๋ฒ• ์ œ์•ˆ)

ํฌ์ฐฉ๋˜์ง€ ์•Š์€ TypeError : encodePayload.split์€ ํ•จ์ˆ˜๊ฐ€ ์•„๋‹™๋‹ˆ๋‹ค.
Object.decodePayload (index.js? 2a85 : 24)
XHR.onData (polling.js? 0949 : 105)
Request.eval (polling-xhr.js? d33e : 101)
Request.Emitter.emit (index.js? 7297 : 145)
Request.onData (polling-xhr.js? d33e : 262)
Request.onLoad (polling-xhr.js? d33e : 329)
XMLHttpRequest.xhr.onreadystatechange (polling-xhr.js? d33e : 217)

๊ฐ€์žฅ ์œ ์šฉํ•œ ๋Œ“๊ธ€

@darrachequesne , 3.0.1 ๋ฆด๋ฆฌ์Šค์˜ ์ƒˆ๋กœ์šด ์˜ˆ์™ธ

Uncaught DOMException: Failed to read the 'responseText' property from 'XMLHttpRequest': The value is only accessible if the object's 'responseType' is '' or 'text' (was 'arraybuffer').

๋ชจ๋“  6 ๋Œ“๊ธ€

๋‚˜์—๊ฒŒ๋„ ์ผ์–ด๋‚œ๋‹ค

๋‚˜๋„.

์ด์ƒํ•˜๊ฒŒ๋„ decodePayload() ๋ฉ”์„œ๋“œ๋Š” ํ•ญ์ƒ ๋ฌธ์ž์—ด๋กœ ํ˜ธ์ถœํ•ด์•ผํ•ฉ๋‹ˆ๋‹ค.

ํ•˜์ง€๋งŒ https://github.com/socketio/engine.io-client/commit/ec3f677e9240a8947b6a12e15e3fd77e9bbb51d5์— ์˜ํ•ด ์ˆ˜์ • ๋  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

@darrachequesne , 3.0.1 ๋ฆด๋ฆฌ์Šค์˜ ์ƒˆ๋กœ์šด ์˜ˆ์™ธ

Uncaught DOMException: Failed to read the 'responseText' property from 'XMLHttpRequest': The value is only accessible if the object's 'responseType' is '' or 'text' (was 'arraybuffer').

์ด ๋ฌธ์ œ์— ๋Œ€ํ•œ ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•์ด ์žˆ์Šต๋‹ˆ๊นŒ? ํ˜„์žฌ ์šฐ๋ฆฌ๋Š” ์ƒˆ๋กœ์šด ์‚ฌ์ดํŠธ๋ฅผ ๊ฐœ๋ฐœ ์ค‘์ด๋ฏ€๋กœ ๋‹ค์šด ๊ทธ๋ ˆ์ด๋“œ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ง€๊ธˆ์€ ๋‹ค์šด ๊ทธ๋ ˆ์ด๋“œํ•˜๋Š” ๊ฒƒ์ด ์ข‹์ง€๋งŒ ๋ˆ„๊ตฐ๊ฐ€๊ฐ€ ๋” ๋‚˜์€ ์•„์ด๋””์–ด๋ฅผ ๊ฐ€์ง€๊ณ ์žˆ์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๊นŒ?

์ด ํŽ˜์ด์ง€๊ฐ€ ๋„์›€์ด ๋˜์—ˆ๋‚˜์š”?
0 / 5 - 0 ๋“ฑ๊ธ‰