# Vendor module (go-resty) problem ?!

**URL:** <https://community.traefik.io/t/vendor-module-go-resty-problem/16717>\
**Category:** Traefik v2\
**Tags:** plugin\
**Created:** [December 5, 2022, 10:25am UTC](https://community.traefik.io/t/vendor-module-go-resty-problem/16717 "2022-12-05T10:25:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gordonlukch](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/gordonlukch/32/6294_2.png) [@gordonlukch](https://community.traefik.io/u/gordonlukch)\
**Post date:** [December 5, 2022, 10:25am UTC](https://community.traefik.io/t/vendor-module-go-resty-problem/16717/1 "2022-12-05T10:25:48Z")

</div>

I am trying create plugin and got Traefiker Bot issue. It report the vendor module (go-resty) problem. issue message as below:

```auto
vendor/github.com/go-resty/resty/v2/request.go:605:48: cannot use type resty.RetryConditionFunc as type func(*unsafe2.dummy, error) bool

```

anyone could help? how i can overcome this issue? Thank you.

my plugin :

> **[GitHub - gordonlukch/Keycloak-Introspect: Keycloak Introspect](https://github.com/gordonlukch/Keycloak-Introspect)**
>
> Keycloak Introspect. Contribute to gordonlukch/Keycloak-Introspect development by creating an account on GitHub.

github issue:

> <https://github.com/gordonlukch/Keycloak-Introspect/issues/4>
>
> The plugin was not imported into Traefik Plugin Catalog.
> 
> Cause:
> \`\`\`
> failed to r…un the plugin with Yaegi: the load of the plugin takes too much time(10s), or an error, inside the plugin, occurs during the load: 1:21: import "github.com/gordonlukch/Keycloak-Introspect" error: /tmp/traefik-plugin-gop2053114730/src/github.com/gordonlukch/Keycloak-Introspect/keycloak\_introspect.go:8:2: import "github.com/Nerzal/gocloak/v12" error: /tmp/traefik-plugin-gop2053114730/src/github.com/gordonlukch/Keycloak-Introspect/vendor/github.com/Nerzal/gocloak/v12/client.go:15:2: import "github.com/go-resty/resty/v2" error: /tmp/traefik-plugin-gop2053114730/src/github.com/gordonlukch/Keycloak-Introspect/vendor/github.com/go-resty/resty/v2/request.go:605:48: cannot use type resty.RetryConditionFunc as type func(\*unsafe2.dummy, error) bool
> \`\`\`
> Traefik Plugin Analyzer will restart when you will close this issue.
> 
> If you believe there is a problem with the Analyzer or this issue is the result of a false positive, please contact \[us\](https://community.traefik.io/).

---

<div class="post-metadata">

**Author:** ![bluepuma77](https://avatars.discourse-cdn.com/v4/letter/b/a9adbd/32.png) [@bluepuma77](https://community.traefik.io/u/bluepuma77)\
**Post date:** [December 5, 2022, 2:09pm UTC](https://community.traefik.io/t/vendor-module-go-resty-problem/16717/2 "2022-12-05T14:09:16Z")

</div>

> [@gordonlukch](#):
>
> `cannot use type resty.RetryConditionFunc as type func(*unsafe2.dummy, error)`

I have no knowledge about GO, but the error seems to indicate that the function call is not correct - check your parameters and parameter types.

---

<div class="post-metadata">

**Author:** ![gordonlukch](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/gordonlukch/32/6294_2.png) [@gordonlukch](https://community.traefik.io/u/gordonlukch)\
**Post date:** [December 6, 2022, 11:21am UTC](https://community.traefik.io/t/vendor-module-go-resty-problem/16717/3 "2022-12-06T11:21:03Z")

</div>

Thank you for your reply.

In my code, i hadn't use the function call that metion on error message. The issue message point out the the line is "import" external library on my code, seem meaningless and hard to trace the problem. :~(
