Shouldnt it be taking in api_key in test mode too? Is that intentional?

On Sat, 2 May 2020 at 20:52, Tom Keffer <[email protected]> wrote:

> Thanks for catching the problem with json.load(). Fixed in commit c05f76b
> <https://github.com/weewx/weewx/commit/c05f76be02a911ef281a6861f8890b087b58db91>
>
> As you discovered, I think the api_key code is working properly.
>
> On Sat, May 2, 2020 at 8:04 AM Praveen Chandrasekaran <
> [email protected]> wrote:
>
>> I think I figured out API key issue. It's not read if in test mode and
>> hence causes error. Attached snippet
>>
>> On Sat, 2 May 2020, 19:40 Praveen Chandrasekaran, <[email protected]>
>> wrote:
>>
>>> I didnt attached console output because i just ran wunderfixer at shell.
>>> I was getting HTTP 401 error. printed api_key from within wunderfixer it
>>> was "None". Then edited wunderfixer with the api key locally and that fixed
>>> that issue
>>>
>>> On Sat, 2 May 2020 at 19:32, Tom Keffer <[email protected]> wrote:
>>>
>>>> Log? Console output?
>>>>
>>>> On Sat, May 2, 2020 at 6:18 AM Praveen Chandrasekaran <
>>>> [email protected]> wrote:
>>>>
>>>>> 2 issues:
>>>>>
>>>>> 1) API key not getting passed. Hacked wunderfixer with local api key
>>>>> instead of passing
>>>>> 2) After 1 I get error  that  JSON object must be str not bytes.
>>>>>
>>>>> On Saturday, 2 May 2020 17:56:50 UTC+5:30, Praveen Chandrasekaran
>>>>> wrote:
>>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> My wunderfixer was working till yesterday (I know for sure because I
>>>>>> have used it to fill missing data often recently)
>>>>>>
>>>>>> After updating to v4, the wunderfixer stopped working. The API key
>>>>>> looks fine but I am getting HTTP 401 FORBIDDEN ERROR.
>>>>>>
>>>>>> Regards,
>>>>>> Praveen
>>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "weewx-user" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to [email protected].
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/weewx-user/e6608887-e63e-4844-955b-da4437b2f662%40googlegroups.com
>>>>> <https://groups.google.com/d/msgid/weewx-user/e6608887-e63e-4844-955b-da4437b2f662%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>> --
>>>> You received this message because you are subscribed to a topic in the
>>>> Google Groups "weewx-user" group.
>>>> To unsubscribe from this topic, visit
>>>> https://groups.google.com/d/topic/weewx-user/PSemiQmyCt0/unsubscribe.
>>>> To unsubscribe from this group and all its topics, send an email to
>>>> [email protected].
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/weewx-user/CAPq0zEB_L-AwoN0DpQSqEjSSCn43oiuH5fZe8TPLcLBqajbQfQ%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/weewx-user/CAPq0zEB_L-AwoN0DpQSqEjSSCn43oiuH5fZe8TPLcLBqajbQfQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> --
>> You received this message because you are subscribed to the Google Groups
>> "weewx-user" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/weewx-user/CA%2BW%3DTmWjPPZX-B9eZsU1VscKP9j1fMQ0d9iEOhf9UwPKMO%2B3Cg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/weewx-user/CA%2BW%3DTmWjPPZX-B9eZsU1VscKP9j1fMQ0d9iEOhf9UwPKMO%2B3Cg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "weewx-user" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/weewx-user/PSemiQmyCt0/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/CAPq0zEAB22_VgJ%3DS9i7ZABuffq%2B2f48ri%2BektbMpJQOQgWcdPg%40mail.gmail.com
> <https://groups.google.com/d/msgid/weewx-user/CAPq0zEAB22_VgJ%3DS9i7ZABuffq%2B2f48ri%2BektbMpJQOQgWcdPg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CA%2BW%3DTmWvHUz1hSTxNY8rQcXQJV-fTP_0mXwx02sNiPBDUSqPNA%40mail.gmail.com.

Reply via email to