Skip to content

Issues with the function of the createHttp2Request  #93

@Java-S12138

Description

@Java-S12138

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

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions