This message was deleted.
# troubleshooting
s
This message was deleted.
r
Can you share the
config
section for
tap-jira
in your
meltano.yml
? Also, I would recommend setting
auth.access_token
as an environment variable:
Copy code
TAP_JIRA_AUTH_ACCESS_TOKEN=<access token>
(you can verify this is set correctly with
meltano config tap-jira list
)
a
sure
r
Maybe
meltano config tap-jira list
is enough to help you debug on your own actually... (i.e. identify if values for settings are picked up as you expect)
a
meltano.yml
.env with
TAP_JIRA_AUTH_ACCESS_TOKEN
set
r
What the output of
meltano config tap-jira list
?
a
actually, just changed the 'auth' to test and then I ran meltano config tap-jira test and got new error message not sure which one is a better sign 😅
r
Well, you're past the config validation error now at least! 😅
a
meltano config tap-jira list
r
I wonder if the previous failure was because
auth.username
and
auth.access_token
together did not constitute a valid configuration (i.e. valid might be just
auth.access_token
OR both
auth.username
and
auth.password
)...
a
yes, I also think that
I'm still having the 'Plugin configuration is invalid' lol
r
403 Forbidden
implies a restriction on your access token (or the user it was generated for). Maybe
meltano invoke tap-jira
gives you some more context (
config <plugin> test
grabs the last log line only, in the case of error)...
a
it does!
it looks like he's trying to extract 'everything' from root. I need to specify what I want to extract
r
According to the README, you should be using
oauth
for
auth.flow
, given `auth.access_token`: https://github.com/MeltanoLabs/tap-jira?tab=readme-ov-file
a
👍 1
r
(I thought you changed it to
test
above)
a
ah, no no 🙂
r
OK, well working under the assumption that your access token is not authorised to access some resources and you don't want to sync everything anyway, you can use
meltano select
to select only the data you want to extract from Jira. To list all selectable entities:
Copy code
meltano select tap-jira --list --all
To select an entity:
Copy code
meltano select tap-jira <entity>
# meltano select tap-jira issues
https://docs.meltano.com/concepts/plugins#select-extra
a
perfect. I'll take a lot and get back to you Reuben. Thanks a lot in advance!
😁 1
looks like I don't have permission for anything ..
r
You could remove Meltano from the equation and use
curl
or a tool like Postman to verify you can successfully make API calls with that token?
a
I'm not sure if I'm using the correct token yes
it looks it connected in the top of the file, but then 'HTTP/2 302'
r
Can you try another access token?
Are you trying something like
Copy code
curl -v https://{domain}:443/rest/api/3/users/search \
    -H "Authorization: Bearer {access token}"
a
So, when I use curl, it works
but I get forbidden when in meltano
r
So
Copy code
curl -v https://{domain}:443/rest/api/3/users/search \
    -H "Authorization: Bearer {access token}"
works, but
Copy code
meltano invoke tap-jira
with
Copy code
select:
- users.*
doesn't?
a
curl -v <https://company.atlassian.net> --user <mailto:user@mail.com|user@mail.com>:api_token
-> works
r
OK, but that's different to the request the tap is making though.
a
Copy code
- name: tap-jira
    variant: meltanolabs
    pip_url: git+<https://github.com/MeltanoLabs/tap-jira.git>
    config:
      domain: company.atlassian.net
      auth:
        flow: oauth
    select:
    - fields.*
Copy code
meltano invoke tap-jira
does not work
r
The tap is using Bearer authentication when you specify
oauth
flow: https://github.com/MeltanoLabs/tap-jira/blob/bae58e75968dc50d1b44f89a49403e9e34e4f651/tap_jira/client.py#L48-L52 Try
Copy code
curl -v https://{domain}:443/rest/api/3/fields \
    -H "Authorization: Bearer {access token}"