[SOLVED] Error 500 Cannot assign null to property Utopia\VCS\Adapter\Git\GitHub::$accessToken
- 0
- General
I send it to you.
Hmm looks okay.
Maybe the client secret is incorrect though?
Does docker compose exec appwrite vars match your env file?
Yes, it does
I tried to add incorrect client secret key and it showed me the next error:
So, I think the problem is other stuff
any chance you can modify the source code to try and dump more info? You would need to
- run
docker compose exec appwrite vi /usr/src/code/vendor/utopia-php/vcs/src/VCS/Adapter/Git/GitHub.php - go to line 294
- add
var_dump($res['body']); - save and quit vi
- run
docker compose restart appwriteto apply the changes
Then, test again. The logs should then dump the response from GitHub and maybe it will give more info as to why the token response from GitHub is null
Ok, I completed the previous steps and the result is as follows:
After this, I tried to search for these logs, and I asked the AI chat about it and it says:
Whoa weird...is the time on your system correct? Maybe it's ahead a little bit?
Yeah, it’s actually correct, but I’m using a VPN when I work, so it was, as you said, ahead a little bit.
I corrected the time and tested it again. It’s working now. Thank you for your support.
]Error 500 Cannot assign null to property Utopia\VCS\Adapter\Git\GitHub::$accessToken of type string
Error 500 Cannot assign null to property Utopia\VCS\Adapter\Git\GitHub::$accessToken of type string
[SOLVED] Error 500 Cannot assign null to property Utopia\VCS\Adapter\Git\GitHub::$accessToken
However, I installed it with Coolify on a remote server.
I ran cmd docker exec appwrite-agg44c8 vars and everything is the same as the variables set in the Coolify service.
When viewing the logs of the appwrite service container
My Github App
@Steven you give me some help?
Please create a new post instead of posting in an old thread. In addition, please don't tag people as it can be disruptive
Recommended threads
- Rec'd a "phishing" email that apparently...
I received an email attempting to convince me that my password expired - and the link wanted to send me to an appwrite instance: (https://updating-projects-ads....
- HackByte X AppWrite
I am Om an Organiser at Hackbyte, Central India's largest hackathon. We are an MLH acreddited hackathon and this is our 4th iteration. Last year we had around ...
- Whats best practise for Appwrite Cloud?
Appwrite Teams map very nicely to my needs, it is how i group users together. ... I use roles to define permissions. Should I also map a table to each team ? ...