Javascript Redux Saga无法从fetch api正确读取响应

Javascript Redux Saga无法从fetch api正确读取响应,javascript,redux,es6-promise,saga,redux-saga,Javascript,Redux,Es6 Promise,Saga,Redux Saga,嗨,我如何读取从提取调用返回的数据: export function* fetchMessages(channel) { yield put(requestMessages()) const channel_name = channel.payload try { const response = yield call(fetch,'/api/messages/'+channel_name) const res =

嗨,我如何读取从提取调用返回的数据:

export function* fetchMessages(channel) {     
    yield put(requestMessages())
    const channel_name = channel.payload
    try {      
        const response = yield call(fetch,'/api/messages/'+channel_name)

        const res = response.json()
            console.log(res)
        yield put(receiveMessages(res,channel))


   } catch (error){      
       yield put(rejectMessages(error))
   }      
}     
当我使用console.log(res)时,我得到:

我如何从这个承诺中获得我的“信息”(侧数组[7])?我对这一切都不熟悉。谢谢你的响应。json()是异步的,返回承诺

改变这个

const res = response.json()

范例

const res = response.json()
const res = yield response.json()