Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local vs Production environment #29

Closed
waqas-mehmood-pk opened this issue Nov 6, 2017 · 1 comment
Closed

Local vs Production environment #29

waqas-mehmood-pk opened this issue Nov 6, 2017 · 1 comment
Assignees

Comments

@waqas-mehmood-pk
Copy link

Laravel version: 5.3.31
Rollbar version: ^2.1
Local OS: Windows 10
Production OS: Windows 7
Local Php version: 7.0.9
Production Php version: 7.1.1
both environment created by using xampp.

Its working fine on local environment but not working in the production environment.

@waqas-mehmood-pk
Copy link
Author

waqas-mehmood-pk commented Nov 9, 2017

Solved:
In my case I have locally SSL certificate installed but not installed on production server after installing SSL certificate on production it's solved.
I found this send method in x:\project-path\vendor\rollbar\rollbar\src\Senders\CurlSender.php

public function send($scrubbedPayload, $accessToken)
    {
        $handle = curl_init();
	
		$this->setCurlOptions($handle, $scrubbedPayload, $accessToken);
        $result = curl_exec($handle);
        

> if (FALSE === $result)
>               dd(curl_error($handle));

        $statusCode = curl_getinfo($handle, CURLINFO_HTTP_CODE);
        
        $result = $result === false ?
                    curl_error($handle) :
                    json_decode($result, true);
        
        curl_close($handle);
        $uuid = $scrubbedPayload['data']['uuid'];
        return new Response($statusCode, $result, $uuid);
    }

After dubuging step by step I found this following error.
SSL certificate problem: unable to get local issuer certificate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants