# Error using discourse-oauth2-basic plugin with NeonCRM

**URL:** <https://meta.discourse.org/t/error-using-discourse-oauth2-basic-plugin-with-neoncrm/132596>\
**Category:** SSO\
**Tags:** oauth2\
**Created:** [November 5, 2019, 12:18am UTC](https://meta.discourse.org/t/error-using-discourse-oauth2-basic-plugin-with-neoncrm/132596 "2019-11-05T00:18:43Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [November 20, 2019, 8:41am UTC](https://meta.discourse.org/t/error-using-discourse-oauth2-basic-plugin-with-neoncrm/132596/16 "2019-11-20T08:41:23Z")

</div>

> [@Denis\_Heraud](#):
>
> ```plaintext
> ArgumentError (Invalid URI: )
> 
> ```
> 
> /var/www/discourse/vendor/bundle/ruby/2.6.0/gems/excon-0.64.0/lib/excon.rb:126:in `new’

The only place we use Excon in the oauth2 plugin is here:

> <https://github.com/discourse/discourse-oauth2-basic/blob/main/plugin.rb#L123-L126>

What do you have set for the `oauth2_user_json_url`? I suspect it is blank. If so, you should also disable `oauth2_fetch_user_details`, so that Discourse does not try and contact a blank URL.

---

_[View the full topic](https://meta.discourse.org/t/error-using-discourse-oauth2-basic-plugin-with-neoncrm/132596)._
