質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.50%
Node.js

Node.jsとはGoogleのV8 JavaScriptエンジンを使用しているサーバーサイドのイベント駆動型プログラムです。

Raspberry Pi

Raspberry Piは、ラズベリーパイ財団が開発した、名刺サイズのLinuxコンピュータです。 学校で基本的なコンピュータ科学の教育を促進することを意図しています。

Q&A

解決済

1回答

693閲覧

node-redはテザリングで動くのでしょうか?

退会済みユーザー

退会済みユーザー

総合スコア0

Node.js

Node.jsとはGoogleのV8 JavaScriptエンジンを使用しているサーバーサイドのイベント駆動型プログラムです。

Raspberry Pi

Raspberry Piは、ラズベリーパイ財団が開発した、名刺サイズのLinuxコンピュータです。 学校で基本的なコンピュータ科学の教育を促進することを意図しています。

0グッド

0クリップ

投稿2018/06/20 05:36

ニフティクラウドにあるチュートリアル
【IoT】ドア監視アプリを作るを真似して作っていました。
https://www.slideshare.net/mobilebackend/mbaas-iot

自宅のWiFiに繋いで、同じように完成させることができました。
試しに外で動かしてみたいなと考え、
スマホのテザリングでRaspberry Piと接続したところ
nodo-redで下記のようなエラーが出ました。
ニフティクラドに値は送信されませんでした。

自宅WiFiとテザリングは同じようなものと考えていたのですが
異なるものなんでしょうか?

(node:1207) UnhandledPromiseRejectionWarning: Error: getaddrinfo EAI_AGAIN mb.api.cloud.nifty.com mb.api.cloud.nifty.com:443 at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:50:26) (node:1207) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:1207) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. (node:1207) UnhandledPromiseRejectionWarning: Error: getaddrinfo EAI_AGAIN mb.api.cloud.nifty.com mb.api.cloud.nifty.com:443 at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:50:26) (node:1207) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2) (node:1207) UnhandledPromiseRejectionWarning: Error: getaddrinfo EAI_AGAIN mb.api.cloud.nifty.com mb.api.cloud.nifty.com:443 at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:50:26) (node:1207) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 3) (node:1207) UnhandledPromiseRejectionWarning: Error: getaddrinfo EAI_AGAIN mb.api.cloud.nifty.com mb.api.cloud.nifty.com:443 at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:50:26) (node:1207) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 4) (node:1207) UnhandledPromiseRejectionWarning: Error: getaddrinfo EAI_AGAIN mb.api.cloud.nifty.com mb.api.cloud.nifty.com:443 at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:50:26) (node:1207) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 5) (node:1207) UnhandledPromiseRejectionWarning: Error: getaddrinfo EAI_AGAIN mb.api.cloud.nifty.com mb.api.cloud.nifty.com:443

ご教授のほど、よろしくお願いします。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

ベストアンサー

自宅WiFiとテザリングは同じようなものと考えていたのですが異なるものなんでしょうか?

この疑問はさておき、
エラーの内容は DNS が見つからない、というものです。

https://stackoverflow.com/questions/40182121/error-getaddrinfo-eai-again

テザリング側か RasPi 側かどちらかに DNS を設定してみてください。
「テザリング DNS」や「RaspberryPi DNS」等で調べれば情報が見つかるかと思います。

投稿2018/06/22 06:04

miiika

総合スコア88

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

退会済みユーザー

退会済みユーザー

2018/06/22 08:08

miiika様、こんにちは。またご回答いただきありがとうございます。 エラーはdnsが見つからない、というものだったのですね。 添付いただいたHPを参考にやってみます! ちなみに。。。miiika様にご指摘いただき ひょっとしたらraspberry piとPCをssh接続するため、 raspberry piのipアドレスを固定させていたのですが それが原因かなと考えていますが正しいでしょうか?
退会済みユーザー

退会済みユーザー

2018/06/22 08:23

やはりraspberry piのipアドレスを固定していたことが原因でした。 固定を設定を消したところ、テザリングでニフクラへデータを送信することができました。 異なるものに接続しているわけですから、エラーになりますよね・・・ miiika様の的確なアドバイスであっという間に解決してしまいました。 ありがとうございました!
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.50%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問