Skip Menu |
 

This queue is for tickets about the Finance-Quote CPAN distribution.

Report information
The Basics
Id: 125310
Status: new
Priority: 0/
Queue: Finance-Quote

People
Owner: Nobody in particular
Requestors: true.bugman [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



MIME-Version: 1.0
X-Spam-Status: No, score=-1.333 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, LOTS_OF_MONEY=0.001, SPF_SOFTFAIL=0.665] autolearn=no
X-Cpan.org: This message routed through the cpan.org mail forwarding service. Please use PAUSE pause.perl.org to configure your delivery settings.
X-Spam-Flag: NO
content-type: text/plain; charset="utf-8"
Message-ID: <CAED9pY-8=ObLLWDizrrPDTzLrqcguk1-5AJm=YZNWvC1WrqkXQ [...] mail.gmail.com>
X-Received: by 2002:a1c:6489:: with SMTP id y131-v6mr4315169wmb.82.1526284762963; Mon, 14 May 2018 00:59:22 -0700 (PDT)
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Spam-Score: -1.333
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 295F22401F8 for <cpan-bug+Finance-Quote [...] hipster.bestpractical.com>; Mon, 14 May 2018 03:59:37 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4hZXq0WXzjji for <cpan-bug+Finance-Quote [...] hipster.bestpractical.com>; Mon, 14 May 2018 03:59:36 -0400 (EDT)
Received: from xx1.develooper.com (xx1.develooper.com [207.171.7.115]) by hipster.bestpractical.com (Postfix) with ESMTPS id ABEFD2400F4 for <bug-Finance-Quote [...] rt.cpan.org>; Mon, 14 May 2018 03:59:35 -0400 (EDT)
Received: from localhost (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with ESMTP id 56B60120B14 for <bug-Finance-Quote [...] rt.cpan.org>; Mon, 14 May 2018 00:59:34 -0700 (PDT)
Received: from xx1.develooper.com (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with SMTP id BC127120B1C for <bug-Finance-Quote [...] rt.cpan.org>; Mon, 14 May 2018 00:59:31 -0700 (PDT)
Received: from mail-wm0-f52.google.com (mail-wm0-f52.google.com [74.125.82.52]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by xx1.develooper.com (Postfix) with ESMTPS id 64B58120A5A for <bug-Finance-Quote [...] rt.cpan.org>; Mon, 14 May 2018 00:59:24 -0700 (PDT)
Received: by mail-wm0-f52.google.com with SMTP id j5-v6so13255485wme.5 for <bug-Finance-Quote [...] rt.cpan.org>; Mon, 14 May 2018 00:59:24 -0700 (PDT)
Received: by 10.28.158.132 with HTTP; Mon, 14 May 2018 00:59:22 -0700 (PDT)
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] gmail.com
X-Google-SMTP-Source: AB8JxZpZRkzjWtjFsM82f6XfVfodTRwjssX72dFdW3QuKW8ZP9TaQW+rYyz1gWA6reAuY/k7IgaJbHoskBiOdsqYB9I=
Delivered-To: cpan-bug+Finance-Quote [...] hipster.bestpractical.com
Subject: Illegal division by zero when fetching from AlphaVantage.
Return-Path: <edward.dauvergne [...] gmail.com>
X-RT-Mail-Extension: finance-quote
X-Original-To: cpan-bug+Finance-Quote [...] hipster.bestpractical.com
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:from:date:message-id:subject:to; bh=cQAZcJdkbdIuXabM7damhP8dIUvxvHWSTc3ifsTGFEw=; b=hsoxPKqorV+my2iQx5e6ltucEs4OPj2vzVkYhr/5Jv6863Wmr8B+x9eO0Xm6H7gQpl L0SkbISZr0rYJcwUrprYOSkMv7Xu1elhe2WFHHpRwFgAzWIRDjfIFKx5e+FM6f8lxN5a irfQP/b1u/C9E4r4xv0gjutYf6Ix1kE6+d8LbE9ezYCAbSJGZACm0zrh2VtXCWSqN6p3 I2NjYFek+RNAjgUifMBq6/FmbCZZchUz5YrfmfT8r/tnDMP8i1mP2eUAc6VIqyxZfIa8 O21TSQixD5524HqTMfLy4psHVyCvGf1lNpx61r73CyPyiQAQxErrE52YVkA1ra7nGdkr c+qw==
X-Google-Sender-Auth: PgTp4GqRko4qz81cgQtE539_PFU
X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to; bh=cQAZcJdkbdIuXabM7damhP8dIUvxvHWSTc3ifsTGFEw=; b=cIfl7YkBh96MYWDHSbC3q9B0nHk+PjJUot51Gj2fz7ipqfJ+mleFbB/e8MVun3cqHe DPwplZxHX5IuVBptFULggJsV/N+52N0gegwTTtMExbbjlFkl6lw2Fv07dOc+d4HYOqjG ylW5TYQQGA8GvMvWRa0J4RePecYlzAW5omk1lQ3KMaoB1zuEuPQwbxZtZqx1xNmw1sHJ Dr98g6/7Lh3QGM6lodRKLwJmGxpxU0mK82aV0wAeLF9MmTo6tclG26Fp4XzIvVTGTQCN Hu5Sy9BhxAJkVANVY4+MdAJWtGKFHngtSw2/Qz3Y8kgWdbu8ZzaZQocI3y4wcbbOO1yn lY3w==
X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' HTML_00_01 0.05, HTML_00_10 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_1200_1299 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, CT_TEXT_PLAIN_UTF8_CAPS 0, DKIM_SIGNATURE 0, SPF_PASS 0, URI_WITH_PATH_ONLY 0, WEBMAIL_SOURCE 0, __ANY_URI 0, __CP_URI_IN_BODY 0, __CT 0, __CT_TEXT_PLAIN 0, __DQ_NEG_HEUR 0, __DQ_NEG_IP 0, __FRAUD_MONEY_CURRENCY 0, __FRAUD_MONEY_CURRENCY_DOLLAR 0, __FRAUD_MONEY_CURRENCY_EURO 0, __FRAUD_WEBMAIL 0, __FRAUD_WEBMAIL_FROM 0, __FRAUD_WEBMAIL_SENDER 0, __FROM_GMAIL 0, __HAS_FROM 0, __HAS_MSGID 0, __HELO_GMAIL 0, __HTTPS_URI 0, __MIME_TEXT_ONLY 0, __MIME_TEXT_P 0, __MIME_TEXT_P1 0, __MIME_VERSION 0, __MULTIPLE_URI_TEXT 0, __NO_HTML_TAG_RAW 0, __PHISH_SPEAR_HTTP_RECEIVED 0, __PHISH_SPEAR_STRUCTURE_1 0, __PHISH_SPEAR_STRUCTURE_2 0, __RDNS_GMAIL 0, __SANE_MSGID 0, __SUBJ_ALPHA_NEGATE 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_IN_BODY 0, __URI_NOT_IMG 0, __URI_NO_MAILTO 0, __URI_NO_WWW 0, __URI_NS , __URI_WITH_PATH 0, __YOUTUBE_RCVD 0, __zen.spamhaus.org_ERROR '
Date: Mon, 14 May 2018 09:59:22 +0200
Sender: edward.dauvergne [...] gmail.com
X-Spam-Level:
X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2018.5.14.74516
To: bug-Finance-Quote [...] rt.cpan.org
From: "Edward d'Auvergne" <true.bugman [...] gmail.com>
X-GM-Message-State: ALKqPwcWZsCM1fuuOm+QdQgZH4CTogXLQhekJMPyg5z5jI8eR2WI8Iuw ZhNsDWu+7aa9fPWAZXIMLqNEjjaCPqEGVlQO5iH2gA==
X-RT-Original-Encoding: utf-8
X-RT-Interface: Email
Content-Length: 1168
Download (untitled) / with headers
text/plain 1.1k
Finance::Quote version: 1.47 Perl version: "This is perl 5, version 22, subversion 3 (v5.22.3) built for x86_64-linux-thread-multi" OS: Mageia 6 x86-64 I have reported this bug upstream for Mageia at: https://bugs.mageia.org/show_bug.cgi?id=22834 And for Gnucash at: https://bugzilla.gnome.org/show_bug.cgi?id=795564 Using the Gnucash quote fetching utility gnc-fq-dump (a wrapper for F::Q), I see: $ gnc-fq-dump currency USD XAU 1 USD = 0.00075451 XAU $ gnc-fq-dump currency USD XAU 1 USD = 0.00075451 XAU $ gnc-fq-dump currency USD XAU Illegal division by zero at /usr/lib/perl5/vendor_perl/5.22.3/Finance/Quote.pm line 289. $ gnc-fq-dump currency USD CNY 1 USD = <unknown> CNY $ gnc-fq-dump currency USD CNY 1 USD = <unknown> CNY $ gnc-fq-dump currency USD CNY 1 USD = <unknown> CNY $ gnc-fq-dump currency CNY $ gnc-fq-dump currency CNY EUR 1 CNY = 0.12991535 EUR $ gnc-fq-dump currency CNY USD 1 CNY = 0.15822534 USD $ gnc-fq-dump currency USD CNY 1 USD = 6.3201 CNY $ When fetching a large block of quotes at the same time, it appears as if this NaN issue completely blocks F::Q. Anyway, I have been advised to report this here. Cheers, Edward


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.