Comments (7)
For what it's worth, I also noticed that the request was leaving the '/' off of the beginning of the URL (e.g. 'https:jira.example.comrest/api/2/blablabla' notice the lack of '/' between 'com' and 'rest'), and what fixed this for me was removing the '/' at the end of the host name I gave the Client object.
I changed
client = JIRA::Client.new(
username: username,
password: password,
site: 'https://jira.example.com/', # notice the '/' at the end
context_path: '',
auth_type: :basic)
to
client = JIRA::Client.new(
username: username,
password: password,
site: 'https://jira.example.com', # the '/' has been removed
context_path: '',
auth_type: :basic)
from jira-ruby.
I should mention that I'm authenticating with HTTP Basic and that the API user has access to update the record, which I confirmed by logging in as that user and updating the record.
from jira-ruby.
@endymion I feel your pain. However, your disparaging comments are not productive. The maintainers of this gem volunteer their time to maintain a gem that someone else created, and are under no obligation to help you. I'm sure they don't appreciate your negative tone. If it's so bad, why don't you try using one of the 60 other JIRA gems.
I realize it's not mentioned in the README, but there are two files in the repo which list a lot of examples, including updating issues. Perhaps you did not see these examples?
I agree, the readme needs some improvement. However, docs aren't a replacement for getting your hands dirty and reading through the source code.
from jira-ruby.
Good news, guys!
I have fixed it!
The issue was that sometimes url didn't have '/' prefix.
https://github.com/legkvla/jira-ruby/commits/master
from jira-ruby.
Have created pull request for you, so you can better understand what's happened and how it could be fixed: #112
from jira-ruby.
#119 fixes this issue.
from jira-ruby.
I found bug in my last fix I made last summer. Since issue is still open - I would like provide a pull request.
Also I found conditions when issue reproduced - for example, when you use Attlassian SDK and your jira instance installed not in root context but in /jira path instead.
If somebody experienced this issue - could you please test my PR too and confirm that it fixes issue. After it will be done - we can close the ticket.
from jira-ruby.
Related Issues (20)
- net/protocol.rb:227:in `rbuf_fill' - Error while connecting to JIRA using token HOT 6
- JIRA::HTTPError: Not Found - /jira/request_client.rb:13:in request' HOT 2
- File attachment silently fails HOT 2
- Upgrade oauth runtime dependency to 1.0.x HOT 3
- Unauthorized (JIRA::HTTPError) during Jira connect via Access Token
- Clarifying question about README on authentication using API token HOT 3
- Add new Ruby versions to the CI HOT 2
- request: Bad Request when finding a user HOT 1
- Can't get attachment contents, seems jira-ruby might be using the wrong endpoint? HOT 4
- Cannot add attachment to an issue when using default headers HOT 1
- OAuth 2.0 HOT 3
- Update documentation regarding authentication via Personal Access Tokens
- Update `client.Field.map_fields` to produce more idomatic ruby method names from attributes
- Announcement: Dropping support for EOL Ruby HOT 5
- Upgrade webmock
- Getting "undefined method `presence` for "Not Found":String" error when issue is not found HOT 5
- "Join Our Slack" link leads to broken Heroku app HOT 1
- Downloading attachments with basic auth HOT 11
- Use of `Kernel.open` or `IO.read` or similar sinks with a non-constant value HOT 2
- Test Consistency
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jira-ruby.