BTCJam API 500 errors


I am currently trying to set up an application using the BTCJam api. I think the api could be very useful, but I have been unable to get it to work fully, and since support isn't responding, I thought I would post here. I am using https basic authentication (not oauth).

First off, while I am able to make the request for current open listings (the "listings" method), none of the other requests work. When I try to get data on my own profile (the "me" method) or on my open listings (the "my_open_listings" method), I get an internal server error (500). Is anyone else having this problem? Are those methods simply not available right now, or is there a difference in how I should be making the "listings" call, which is working for me, vs. the other GET requests listen on the api FAQ page? From the documentation, it seems that all GET requests are authenticated the same way, with all settings and parameters (none) the same, but just a different method. So why is one of the methods...

0 0

General BTCjam Information

What is BTCjam?

BTCjam is the first peer-to-peer lending network powered by Bitcoin.

How do I invest in a BTCjam listing?

First make sure you have Bitcoins. You can learn how to get Bitcoins here. Next you must register for a BTCjam account and fund it by using the "Add Funds" button at the dashboard. Then you can proceed to the listings section. Please read our How to Invest in Bitcoin Loans and Rules for Lenders pages.

Why should I get loan on BTCjam?

There are many great reasons to get a loan on BTCjam. Here are our favorites:

Low Interest Rates Fast, Easy Online Process Available Globally Secure and Confidential

Read more on why you should get a loan here, and more here to see if getting a loan on BTCjam is right for you.

How should I invest on BTCjam?

We believe you should always diversify your investments. Read our blog post on diversification, and another blog post on the Three...

0 0

Generally speaking, 5xx response codes indicate non-programmatic failures, such as a database connection failure, or some other system/library dependency failure. In many cases, it is expected that the client can re-submit the same request in the future and expect it to be successful.

Yes, some web-frameworks will respond with 5xx codes, but those are typically the result of defects in the code and the framework is too abstract to know what happened, so it defaults to this type of response; that example, however, doesn't mean that we should be in the habit of returning 5xx codes as the result of programmatic behavior that is unrelated to out of process systems. There are many, well defined response codes that are more suitable than the 5xx codes. Being unable to parse/validate a given input is not a 5xx response because the code can accommodate a more suitable response that won't leave the client thinking that they can resubmit the same request, when in fact, they can...

0 0

BTCJam is the first and leading global peer-to-peer lending platform, and the first to offer a global credit score to its users. It is a disruptive credit model powered by the bitcoin economy which helps its members:

– crowd-fund loans at a chosen rate
– diversify investments on a global scale
– develop a globally credentialed credit profile

BTCJam promotes lending without borders, where people can borrow and lend bitcoins, without having to worry about banks and other intermediaries. Transactions are instantaneous, hassle free, and supported by a trusting community.

We are changing how the financial system operates globally, one bitcoin at a time.


0 0

I want to update group settings via web API request. All necessary authorization scopes are provided and groups settings are enabled. I send a put request:

body = { "whoCanPostMessage": "ALL_MEMBERS_CAN_POST", "whoCanViewMembership": "ALL_MEMBERS_CAN_VIEW" } response = requests.put( "" % group_id, data=json.dumps(body), headers={ 'Content-type': 'application/json; charset=UTF-8', 'Authorization': 'Bearer %s' % access_token } )

but the server responds:

Internal Server Error headers: Cache-Control: private, max-age=0 Content-Encoding: gzip Content-Length: 122 Content-Type: application/json; charset=UTF-8 Date: Fri, 05 Feb 2016 18:36:53 GMT Expires: Fri, 05 Feb 2016 18:36:53 GMT Server: GSE Vary: Origin, X-Origin content: { "error": { "errors": [ { "domain": "global", "reason": "backendError", "message": "Backend Error" } ], "code": 500, "message": "Backend Error" } }

The same error occurs when...

0 0

Yesterday, at 2:48pm EDT, calls to metafields failed

Example: /admin/products/404514000/metafields.json

But for all products. It kept throwing errors for about 2 minutes, then came back up.

I will email that address and post here when it happens again.

Right now if our webservice fails, we test using curl to verify it's happening outside our codebase.

If you have anything else you'd like us to run when it happens so we can get you debug info, please let me know.

PS. Here is a curl failure example:

curl -s -D - -u "{{login:pass}}"
HTTP/1.1 500 Internal Server Error
Server: nginx
Date: Tue, 21 Jun 2016 19:48:23 GMT
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Status: 500 Internal Server Error
X-Frame-Options: DENY
X-ShopId: 7442139
X-ShardId: 3

0 0

Bitcoin is the currency of the Internet: a distributed, worldwide, decentralized digital money. Unlike traditional currencies such as dollars, bitcoins are issued and managed without any central authority whatsoever: there is no government, company, or bank in charge of Bitcoin. As such, it is more resistant to wild inflation and corrupt banks. With Bitcoin, you can be your own bank.

If you are new to Bitcoin, check out We Use Coins and You can also explore the Bitcoin Wiki:

How to buy bitcoins worldwide
Buying Reddit Gold with bitcoin

Will I earn money by mining bitcoin?

Security guide for beginners - (WIP)

Community guidelines

Do not use URL shortening services: always submit the real link. Begging/asking for bitcoins is absolutely not allowed, no matter how badly you need the bitcoins. Only requests for donations to large, recognized charities are allowed, and only if there is good reason to believe that the person...
0 0

This best practices guide is designed to help understand how to best handle occasional errors that can be encountered while using our APIs. While we make significant attempts to accept and process all API requests to our service, some errors will be encountered from time to time. This guide will attempt to explain the nature of various errors how best to handle them.

Please log all API call and responses

Please log your full API requests and our API responses to you. If you encounter an error while using our API, we'll ask you for your API log data in order to see your API request and our API response to you as part of our fact finding mission and so we can provide you with the most accurate answers.

Due to the vast amounts API traffic sent to our service, we are required to rotate our log data relatively frequently and usually only have the past few hours of log data to analyze. If you have a question about events prior to our log retention history, we would...

0 0


I'm making an Instagram 'clone' and want to add comments using Axios.

I have a resourceful controller setup and a Vue instance to handle the frontend.

Right now I can display comments but the form at the bottom does not work, and sends a 500 error. Any help would be greatly appreciated.

Here is my form which pushes to the createComment() vue method.

Comment: New Comment

The vue method then uses axios to send a post request to the controller

createComment() {'/comments/', { content: this.comment.content, }) .then(function (response) { this.comments.push(; this.comment = {content: ''}; console.log(response); }) .catch(function (error) { console.log(error); }); },

Here is my [email protected]

$this->validate($request, [ 'content' => 'required' ]); $comment =...
0 0

Today, I’d like to talk about the (sometimes subtle) difference between 4xx and 5xx response codes when programming a RESTful API. I’ll try to show when to return what code (400 or 500) and introduce a simple way to implement this logic on the server side.

400 and 500 response codes from a programmer perspective

In REST, both 4xx and 5xx types of codes denote an error. The main difference between the two is whose fault that error is. A 4xx code indicates an error caused by the user, whereas 5xx codes tell the client that they did everything correctly and it’s the server itself who caused the problem. 401 (unauthorized), 403 (forbidden), 404 (not found), and so on all mean the client has to fix the problem on their side before trying again. On the contrary, 501 (not implemented), 502 (bad gateway), etc mean the request can be resent as is at a later time, when the server overcomes its current problems.

This difference is very similar to the topic of exceptions...

0 0
0 0

Is anyone else getting 500: Internal Server Errors today? I can't be the only one. My program gets as far as followers and friends, and even list members and subscribers, then the 500 shows up. I have the HTTP header if that will help you diagnose the problem.

HTTP/1.1 500 Internal Server Error Cache-Control: no-cache, no-store, must-revalidate, pre-check=0, post-check=0 Date: Tue, 10 Apr 2012 17:45:14 GMT Pragma: no-cache Server: tfe Vary: Accept-Encoding Content-Language: en-us Content-Length: 8851 Content-Type: text/html; charset=utf-8 Expires: Tue, 31 Mar 1981 05:00:00 GMT Last-Modified: Tue, 10 Apr 2012 17:45:14 GMT Client-Date: Tue, 10 Apr 2012 17:45:18 GMT Client-Peer: Client-Response-Num: 1 Link: ; rel="shortcut icon"; type="image/x-icon" Link: ; rel="stylesheet" Set-Cookie: k=; path=/; expires=Tue, 17-Apr-12 17:45:14 GMT; Set-Cookie: guest_id=v1%3A133407991409950422;; path=/;...
0 0

We have a setup a gems virtual repository containing a remote repo and a local repo.

When trying to do bundle update with this repo as the only source in Gemfile, artifiactory returns with this error:

Fetching gem metadata from http://artifactory/artifactory/api/gems/rubygems/. Retrying dependency api due to error (2/4): Bundler::HTTPError Net::HTTPInternalServerError: { "errors" : [ { "status" : 500, "message" : "Comparison method violates its general contract!" } ] }

When listing the remote and local repo in the Gemfile separately all works without error.

Seems someone else also encountered the same problem:

0 0

In a project that we’re working on, we’re consuming REST APIs delivered by services built by another team working for the same customer. We had a discussion about what were appropriate error codes to return for various situations. The discussion boiled down to: should a service return a 500 error code or a 400 error code when a request cannot be processed?

I took a quick look at the documentation for a couple of the larger REST API providers and they are using the 500 code only for catastrophic failure and using the 400 code for anything related to query-input validation errors.

Microsoft Azure Common REST API Error Codes

Code 400:

The requested URI does not represent any resource on the server. One of the request inputs is out of range. One of the request inputs is not valid. A required query parameter was not specified for this request. One of the query parameters specified in the request URI is not supported. An invalid value was specified for one of the...
0 0


When using the IBM WebSphere Presence Server V7.0 REST API's, all requests fail with a HTTP 500 error returned to the client.


The REST requests fail with messages similar to those listed below:

BNFHeadersImp 3 getHeaderAsString(s): PresenceHttpResposneId [null]
GatewayServle E response id was not found for the HTTP request
HttpResponseM 1 setStatusCode(sc): Status code: 500

webapp E logServletError SRVE0293E: [Servlet
Error]-[GatewayServlet]: SRVE0295E: Error reported: 500

0 0


[global] ;Path to logfile logfile=/var/log/suphp/suphp.log ;Loglevel loglevel=info ;User Apache is running as webserver_user=www-data ;Path all scripts have to be in ;docroot=/var/www:${HOME}/public_html dochroot=/var/www ;Path to chroot() to before executing script ;chroot=/mychroot ; Security options allow_file_group_writeable=false allow_file_others_writeable=false allow_directory_group_writeable=false allow_directory_others_writeable=false ;Check wheter script is within DOCUMENT_ROOT check_vhost_docroot=true ;Send minor error messages to browser errors_to_browser=false ;PATH environment variable env_path=/bin:/usr/bin ;Umask to set, specify in octal notation umask=0022 ; Minimum UID min_uid=100 ; Minimum GID min_gid=100 [handlers] ;Handler for php-scripts application/x-httpd-suphp="php:/usr/bin/php-cgi" ;Handler for CGI-scripts x-suphp-cgi="execute:!self" x-httpd-suphp="php:/usr/bin/php-cgi" Also tried

and restarted...

0 0