-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Labels
bugSomething isn't workingSomething isn't working
Description
This is an api that pick a hero in selecting hero's phase.( /lol-champ-select/v1/session/actions/1 )
Using createHttp1Request function there is no problem, and the following code.
const http1PickHero = async () => {
const credentials = await authenticate()
let localBody = {
"completed": true,
"type": 'pick',
"championId": '157'
}
const response = await createHttp1Request({
method: "PATCH",
url: `/lol-champ-select/v1/session/actions/1`,
body: localBody
}, credentials)
}But using createHttp2Request function there is problem.
No any response, also is not an error.
PATCH or POST method not response, but GET have a response.
const http2PickHero = async () => {
const credentials = await authenticate()
const session = await createHttpSession(credentials)
let localBody = {
"completed": true,
"type": 'pick',
"championId": '157'
}
const response = await createHttp2Request({
method: "PATCH",
url: `/lol-champ-select/v1/session/actions/1`,
body: localBody
},session, credentials)
session.close()
}Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working