Support » Plugins and Hacks » Publish To Apple News » API ERROR: INVALID_API_KEY_FORMAT

  • Resolved heliweb

    (@heliweb)


    New to apple news and as soon as I try to push content from my wordpress site, i get this INVALID_API_KEY_FORMAT error. Here is the Json file from the last post I tried to publish, also the debug report I got via email below.

    Json file: https://drive.google.com/file/d/0BwaBS_ZPYa9edHNWaGIxVVYwQWs/view?usp=sharing

    API Response:

    Array
    (
        [headers] => Requests_Utility_CaseInsensitiveDictionary Object
            (
                [data:protected] => Array
                    (
                        [www-authenticate] => HHMAC
                        [content-type] => application/json; charset=UTF-8
                        [content-length] => 46
                    )
    
            )
    
        [body] => {"errors":[{"code":"INVALID_API_KEY_FORMAT"}]}
        [response] => Array
            (
                [code] => 401
                [message] => Unauthorized
            )
    
        [cookies] => Array
            (
            )
    
        [filename] =>
        [http_response] => WP_HTTP_Requests_Response Object
            (
                [response:protected] => Requests_Response Object
                    (
                        [body] => {"errors":[{"code":"INVALID_API_KEY_FORMAT"}]}
                        [raw] => HTTP/1.1 401 Unauthorized
    WWW-Authenticate: HHMAC
    Content-Type: application/json; charset=UTF-8
    Content-Length: 46
    
    {"errors":[{"code":"INVALID_API_KEY_FORMAT"}]}
                        [headers] => Requests_Response_Headers Object
                            (
                                [data:protected] => Array
                                    (
                                        [www-authenticate] => Array
                                            (
                                                [0] => HHMAC
                                            )
    
                                        [content-type] => Array
                                            (
                                                [0] => application/json; charset=UTF-8
                                            )
    
                                        [content-length] => Array
                                            (
                                                [0] => 46
                                            )
    
                                    )
    
                            )
    
                        [status_code] => 401
                        [protocol_version] => 1.1
                        [success] =>
                        [redirects] => 0
                        [url] => https://u48r14.digitalhub.com/channels/d8f2d843-f35c-4f46-bcbd-c7c1e718b472/articles
                        [history] => Array
                            (
                            )
    
                        [cookies] => Requests_Cookie_Jar Object
                            (
                                [cookies:protected] => Array
                                    (
                                    )
    
                            )
    
                    )
    
                [filename:protected] =>
                [data] =>
                [headers] =>
                [status] =>
            )
    
    )
    
    Request Meta:
    
    Array
    (
        [data] => Array
            (
                [links] => Array
                    (
                        [sections] => Array
                            (
                            )
    
                    )
    
            )
    
    )

    [Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]

    • This topic was modified 1 week, 3 days ago by  bdbrown.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.