Bitcoin Forum
May 10, 2015, 08:24:37 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: Latest stable version of Bitcoin Core:
0.10.1
[
Torrent
] (
New!
)
Home
Help
Search
Donate
Login
Register
Bitcoin Forum
>
Bitcoin
>
Technical Support
>
bitcoind not responding to RPC
Pages: [
1
]
« previous topic
next topic »
Print
Author
Topic: bitcoind not responding to RPC (Read 2892 times)
mtgox
Full Member
Offline
Activity: 185
Ignore
bitcoind not responding to RPC
July 23, 2010, 12:29:48 PM
#1
Occasionally bitcoind will not respond to RPC I'm calling it from php and I get this error:
Warning: fopen(
http://127.0.0.1:8332
) [function.fopen]: failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error
It happens a lot locally on my windows machine and less frequently on my linux server.
Anyone else have this problem?
Mt. Gox --- New 24/7 Bitcoin Exchange
https://ip.bitcointalk.org/?u=http%3A%2F%2Fmtgox.com%2Fcode%2FtickerImage.php&t=552&c=S0pL520xrJzI-Q
Private Internet Access™ - No logs, Unlimited Bandwidth, PC Magazine's Editor's Choice
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
Advertise here.
1431289477
Hero Member
Offline
Posts: 1431289477
Ignore
1431289477
1431289477
#2
1431289477
Report to moderator
1431289477
Hero Member
Offline
Posts: 1431289477
Ignore
1431289477
1431289477
#2
1431289477
Report to moderator
The Madhatter
Hero Member
Offline
Activity: 490
My avatar pic says it all
Ignore
Re: bitcoind not responding to RPC
July 23, 2010, 04:23:16 PM
#2
Try taking the "http://" out of your fsockopen(). The JSON-RPC server isn't really HTTP.
I've had the best luck with the curl+json php extensions, myself.
mtgox
Full Member
Offline
Activity: 185
Ignore
Re: bitcoind not responding to RPC
July 23, 2010, 04:25:59 PM
#3
Well it works 95% of the time which is what is weird
Mt. Gox --- New 24/7 Bitcoin Exchange
https://ip.bitcointalk.org/?u=http%3A%2F%2Fmtgox.com%2Fcode%2FtickerImage.php&t=552&c=S0pL520xrJzI-Q
The Madhatter
Hero Member
Offline
Activity: 490
My avatar pic says it all
Ignore
Re: bitcoind not responding to RPC
July 23, 2010, 04:39:00 PM
#4
Strange. I use my bitcoind almost every day from PHP, and I haven't encountered that.
mtgox
Full Member
Offline
Activity: 185
Ignore
Re: bitcoind not responding to RPC
July 23, 2010, 04:47:36 PM
#5
I also get it anytime I send an invalid bitcoin address. Which is weird since it doesn't seem like that would effect the connecting.
Mt. Gox --- New 24/7 Bitcoin Exchange
https://ip.bitcointalk.org/?u=http%3A%2F%2Fmtgox.com%2Fcode%2FtickerImage.php&t=552&c=S0pL520xrJzI-Q
satoshi
Founder
Sr. Member
Offline
Activity: 364
Ignore
Re: bitcoind not responding to RPC
July 23, 2010, 05:23:47 PM
#6
If I recall correctly, 500 is the prescribed status code for JSON-RPC error responses. There is still a JSON response in the body of the reply telling the explanation of the error, which could be something like {"result":"","error":"bitcoin address not found","id":"1"}.
mtgox
Full Member
Offline
Activity: 185
Ignore
Re: bitcoind not responding to RPC
July 23, 2010, 06:14:48 PM
#7
Weird I guess fopen() in php dies if the response is 500?
It seems like errors such as invalid address should just be normal replies just not "sent" so we can just check the reply string. I think of 500 errors as the server itself having an error.
Mt. Gox --- New 24/7 Bitcoin Exchange
https://ip.bitcointalk.org/?u=http%3A%2F%2Fmtgox.com%2Fcode%2FtickerImage.php&t=552&c=S0pL520xrJzI-Q
satoshi
Founder
Sr. Member
Offline
Activity: 364
Ignore
Re: bitcoind not responding to RPC
July 24, 2010, 01:15:58 AM
#8
Can anyone confirm if JSON-RPC over HTTP is supposed to use status 500 if the reply is an error reply? I can't remember where I picked that up, maybe it's wrong. It seems like 200 would make more sense unless there's something wrong with the mechanics of the HTTP request itself. (and maybe that's what it said and I forgot and spread 500 to all error responses)
Coinbuck @ BTCLot
Hero Member
Offline
Activity: 541
The future begins today
Ignore
Re: bitcoind not responding to RPC
June 24, 2011, 11:53:25 PM
#9
I'm having the same issue, one year later ...
Windows 7 + Lastest bitcoin client
I'm using this:
https://en.bitcoin.it/wiki/PHP_developer_intro
Bitcoin is the future !
Pages: [
1
]
Print
Bitcoin Forum
>
Bitcoin
>
Technical Support
>
bitcoind not responding to RPC
« previous topic
next topic »
Jump to:
Please select a destination:
-----------------------------
Bitcoin
-----------------------------
=> Bitcoin Discussion
===> Legal
===> Press
===> Meetups
===> Important Announcements
=> Development & Technical Discussion
===> Alternative clients
=====> MultiBit
=====> Electrum
=====> Bitcoin Wallet for Android
=====> BitcoinJ
=====> Armory
=> Mining
===> Mining support
===> Pools
===> Mining software (miners)
===> Hardware
=====> Group buys
===> Mining speculation
=> Technical Support
=> Project Development
-----------------------------
Economy
-----------------------------
=> Economics
===> Speculation
=> Marketplace
===> Goods
=====> Computer hardware
=====> Digital goods
===> Services
===> Currency exchange
===> Gambling
=====> Games and rounds
=====> Investor-based games
===> Lending
=====> Long-term offers
===> Securities
===> Auctions
===> Service Announcements
=====> Micro Earnings
===> Service Discussion
=> Trading Discussion
===> Scam Accusations
===> Reputation
-----------------------------
Other
-----------------------------
=> Meta
===> New forum software
===> Bitcoin Wiki
=> Politics & Society
=> Beginners & Help
=> Off-topic
=> Archival
===> CPU/GPU Bitcoin mining hardware
===> Chinese students
===> Obsolete (buying)
===> Obsolete (selling)
-----------------------------
Alternate cryptocurrencies
-----------------------------
=> Altcoin Discussion
=> Announcements (Altcoins)
=> Mining (Altcoins)
===> Pools (Altcoins)
=> Marketplace (Altcoins)
===> Service Announcements (Altcoins)
===> Service Discussion (Altcoins)
-----------------------------
Local
-----------------------------
=> Bahasa Indonesia (Indonesian)
===> Jual Beli
===> Mining (Bahasa Indonesia)
===> Altcoins (Bahasa Indonesia)
=> Español (Spanish)
===> Mercado y Economía
=====> Servicios
=====> Trading y especulación
===> Hardware y Minería
===> Esquina Libre
===> Mercadillo
=====> Mexico
=====> Argentina
=====> España
=====> Centroamerica y Caribe
===> Primeros pasos y ayuda
===> Altcoins (criptomonedas alternativas)
=====> Minería de altcoins
=====> Servicios
=> 中文 (Chinese)
===> 跳蚤市场
===> 山寨币
===> 媒体
===> 挖矿
===> 离题万里
=> Hrvatski (Croatian)
=> Deutsch (German)
===> Biete
===> Suche
===> Anfänger und Hilfe
===> Mining (Deutsch)
===> Trading und Spekulation
===> Projektentwicklung
===> Off-Topic (Deutsch)
===> Treffen
===> Presse
===> Auktionen
===> Altcoins (Deutsch)
=> Ελληνικά (Greek)
===> Αγορά
===> Mining (Ελληνικά)
===> Altcoins (Ελληνικά)
=> עברית (Hebrew)
=> Français
===> Actualité et News
===> Débutants
===> Discussions générales et utilisation du Bitcoin
===> Mining et Hardware
===> Économie et spéculation
===> Place de marché
=====> Échanges
=====> Produits et services
=====> Petites annonces
===> Le Bitcoin et la loi
===> Wiki, documentation et traduction
===> Développement et technique
===> Vos sites et projets
===> Hors-sujet
===> Altcoins (Français)
=> India
===> Mining (India)
===> Marketplace (India)
===> Regional Languages (India)
===> Press & News from India
===> Alt Coins (India)
===> Buyer/ Seller Reputations (India)
===> Off-Topic (India)
=> Italiano (Italian)
===> Guide (Italiano)
===> Progetti
===> Discussioni avanzate e sviluppo
===> Trading, analisi e speculazione
===> Mercato
=====> Mercato valute
=====> Beni
=====> Servizi
=====> Esercizi commerciali
=====> Hardware/Mining (Italiano)
=====> Gambling (Italiano)
===> Accuse scam/truffe
===> Mining (Italiano)
===> Alt-Currencies (Italiano)
=====> Annunci
===> Raduni/Meeting (Italiano)
===> Crittografia e decentralizzazione
===> Off-Topic (Italiano)
=> Nederlands (Dutch)
===> Markt
===> Gokken/lotterijen
===> Mining (Nederlands)
===> Beurzen
===> Alt Coins (Nederlands)
===> Off-topic (Nederlands)
===> Meetings (Nederlands)
=> 한국어 (Korean)
===> 대체코인 Alt Coins (한국어)
=> Polski
===> Tablica ogłoszeń
===> Alternatywne kryptowaluty
=> Português (Portuguese)
===> Primeiros Passos (Iniciantes)
===> Economia & Mercado
===> Mineração em Geral
===> Desenvolvimento & Discussões Técnicas
===> Criptomoedas Alternativas
===> Brasil
===> Portugal
=> Русский (Russian)
===> Новички
===> Новости
===> Бизнес
===> Идеи
===> Кодеры
===> Майнеры
===> Политика
===> Трейдеры
===> Форки
===> Хайпы
===> Юристы
===> Работа
===> Разное
===> Корзина
=> Română (Romanian)
===> Anunturi importante
===> Offtopic
===> Market
===> Minat
===> Tutoriale
===> Bine ai venit!
===> Presa
===> Altcoins (Monede Alternative)
=> Skandinavisk
=> Türkçe (Turkish)
===> Bitcoin Haberleri
===> Pazar Alanı
===> Madencilik
===> Ekonomi
===> Servisler
===> Alternatif Kripto-Paralar
===> Konu Dışı
===> Yeni Başlayanlar & Yardım
=> Other languages/locations
Sponsored by
Private Internet Access
, a Bitcoin-accepting
VPN
.
Loading...