michalmytych / moneypenny

Full-stack web application for personal budget management.
MIT License
2 stars 0 forks source link

Without NordigenAPI credentials provided, integrations web route fails #49

Open michalmytych opened 1 year ago

michalmytych commented 1 year ago

Details:

cURL error 3: (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for /api/v2/token/new/

Occured here:

    /**

     * @throws GuzzleException

     */

    public function getFreshTokenData(): array

    {

        $requestBody = [

            'secret_id' => config('nordigen.secret_id'),

            'secret_key' => config('nordigen.secret_key'),

        ];

        $response = $this->httpClient->post(self::NEW_TOKEN_URI, [

            'json' => $requestBody,

        ]);

        return $this->decodedResponse($response);

    }