Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Response listeners dependency error (2.1.2) #355

Open
mrbaco opened this issue Jan 18, 2021 · 1 comment
Open

Response listeners dependency error (2.1.2) #355

mrbaco opened this issue Jan 18, 2021 · 1 comment

Comments

@mrbaco
Copy link

mrbaco commented Jan 18, 2021

Describe the bug
I got Netty dependency error when try to use response listener in my project:
error: package io.netty.handler.codec.http does not exist
Even I add Netty dependency in my project (try to add 4.1.44.Final and newer)

To Reproduce
I prepared a small example for this here: https://github.com/mrbaco/browserup_listeners

Expected behavior
Listeners work correctly, there is no dependency error in the project.

Please complete the following information:
OS Windows 10, Gradle 6.7, browserup-proxy-core 2.1.2

@mrbaco mrbaco changed the title Response listeners dependencies error (2.1.2) Response listeners dependency error (2.1.2) Jan 18, 2021
@apreg
Copy link

apreg commented Aug 2, 2021

This workaround helped me

testCompile ('com.browserup:browserup-proxy-core:2.1.2'){
           exclude group: 'io.netty', module: 'netty-all'
//        exclude group: 'io.netty', module: 'netty-buffer'
//        exclude group: 'io.netty', module: 'netty-codec'
//        exclude group: 'io.netty', module: 'netty-common'
//        exclude group: 'io.netty', module: 'netty-resolver'
//        exclude group: 'io.netty', module: 'netty-transport'
    } 
    testCompile group: 'io.netty', name: 'netty-codec-http', version: '4.1.50.Final'

Although netty-all contains io.netty.handler.codec.http somehow the compiler could not find it so I decided to exclude netty-all and keep the modules only. Note that the modules were imported twice except netty-codec-http so I had to include that separately.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants