# Error while blocking a user

**URL:** <https://community.auth0.com/t/error-while-blocking-a-user/8864>\
**Category:** Get Help\
**Tags:** sdk, user, block, management-api\
**Created:** [December 1, 2017, 3:35pm UTC](https://community.auth0.com/t/error-while-blocking-a-user/8864 "2017-12-01T15:35:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![priya.sharma.9362](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/priya.sharma.9362/32/14302_2.png) [@priya.sharma.9362](https://community.auth0.com/u/priya.sharma.9362)\
**Post date:** [December 1, 2017, 3:35pm UTC](https://community.auth0.com/t/error-while-blocking-a-user/8864/1 "2017-12-01T15:35:10Z")

</div>

Problems processing event: java.lang.NoSuchMethodError: okhttp3.HttpUrl$Builder.addPathSegments(Ljava/lang/String;)Lokhttp3/HttpUrl$Builder;

The code is as follows -  
ManagementAPI mgmt = new ManagementAPI(domain, token);  
Request request = mgmt.users().update(userId, data);

I tried adding different versions of okhttp jars but still I am unable to resolve the issue.  
Any help will be greatly appreciated.  
Thanks in advance.,

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [December 4, 2017, 10:47pm UTC](https://community.auth0.com/t/error-while-blocking-a-user/8864/2 "2017-12-04T22:47:43Z")

</div>

I have just tried to use very similar code in a sample Java application and had no such issues; the Auth0 Java SDK currently requests OkHttp 3.7.0 and the method in question `addPathSegments` seems to exist since the 3.2.0 version. In conclusion, that seems to be an issue very specific to how you built/run your application so if you don’t resolve the issue yourself I would advise to either do a test in a sample application like the Java [quickstart](https://auth0.com/docs/quickstart/webapp/java).

---

<div class="post-metadata">

**Author:** ![priya.sharma.9362](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/priya.sharma.9362/32/14302_2.png) [@priya.sharma.9362](https://community.auth0.com/u/priya.sharma.9362)\
**Post date:** [December 5, 2017, 10:21pm UTC](https://community.auth0.com/t/error-while-blocking-a-user/8864/3 "2017-12-05T22:21:42Z")

</div>

Thank you so much for the reply.  
I did research on the right versions so I also updated my OkHttp jar with version 3.7.0 before asking this question.

But since you were not facing the same issue, I will try to look into my implementation again.

Meanwhile, it would be great if you can point out my mistake in the code. 🙂

---

<div class="post-metadata">

**Author:** ![priya.sharma.9362](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/priya.sharma.9362/32/14302_2.png) [@priya.sharma.9362](https://community.auth0.com/u/priya.sharma.9362)\
**Post date:** [December 6, 2017, 12:07pm UTC](https://community.auth0.com/t/error-while-blocking-a-user/8864/4 "2017-12-06T12:07:33Z")

</div>

I also tried using the latest auth0-1.4.0 jar but still, I am facing the same issue.

---

<div class="post-metadata">

**Author:** ![priya.sharma.9362](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/priya.sharma.9362/32/14302_2.png) [@priya.sharma.9362](https://community.auth0.com/u/priya.sharma.9362)\
**Post date:** [December 6, 2017, 1:53pm UTC](https://community.auth0.com/t/error-while-blocking-a-user/8864/5 "2017-12-06T13:53:48Z")

</div>

Thank you so much for the help. I appreciate the quick response from the community.  
I was able to resolve the issue by updating all by dependency jars to the latest versions.

Okhttp-3.7.0  
Okio-1.13.0  
auth0-1.4.0  
Not sure which one was erroneous but this solved my problem.  
Thanks, everyone.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:57am UTC](https://community.auth0.com/t/error-while-blocking-a-user/8864/6 "2018-03-02T05:57:36Z")

</div>


